mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Don't write SFP options value twice in status JSON
This commit is contained in:
1 parent
efe0c282ba
commit
0b4f59483b
1 file changed
-1
@@ -641,7 +641,6 @@ void send_status(void)
|
|||||||
slen += strtox(outbuf + slen,",\"sfp_options\":\"0x");
|
slen += strtox(outbuf + slen,",\"sfp_options\":\"0x");
|
||||||
byte_to_html(sfp_options[machine.is_sfp[i]-1]);
|
byte_to_html(sfp_options[machine.is_sfp[i]-1]);
|
||||||
if (sfp_options[machine.is_sfp[i]-1] & 0x40) {
|
if (sfp_options[machine.is_sfp[i]-1] & 0x40) {
|
||||||
sfp_send_data(machine.is_sfp[i] - 1, 92, 1);
|
|
||||||
slen += strtox(outbuf + slen,"\",\"sfp_temp\":\"0x");
|
slen += strtox(outbuf + slen,"\",\"sfp_temp\":\"0x");
|
||||||
sfp_send_data(machine.is_sfp[i] - 1, 224, 2);
|
sfp_send_data(machine.is_sfp[i] - 1, 224, 2);
|
||||||
slen += strtox(outbuf + slen,"\",\"sfp_vcc\":\"0x");
|
slen += strtox(outbuf + slen,"\",\"sfp_vcc\":\"0x");
|
||||||
|
|||||||
Reference in new issue
Block a user