CF/BF - remove unneeded braces in MSP_ANALOG
This commit is contained in:
parent
c59e7312c2
commit
382ef9de68
|
@ -727,14 +727,13 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_ANALOG: {
|
case MSP_ANALOG:
|
||||||
sbufWriteU8(dst, (uint8_t)constrain(getBatteryVoltage(), 0, 255));
|
sbufWriteU8(dst, (uint8_t)constrain(getBatteryVoltage(), 0, 255));
|
||||||
sbufWriteU16(dst, (uint16_t)constrain(getMAhDrawn(), 0, 0xFFFF)); // milliamp hours drawn from battery
|
sbufWriteU16(dst, (uint16_t)constrain(getMAhDrawn(), 0, 0xFFFF)); // milliamp hours drawn from battery
|
||||||
sbufWriteU16(dst, rssi);
|
sbufWriteU16(dst, rssi);
|
||||||
sbufWriteU16(dst, (int16_t)constrain(getAmperage(), -0x8000, 0x7FFF)); // send current in 0.01 A steps, range is -320A to 320A
|
sbufWriteU16(dst, (int16_t)constrain(getAmperage(), -0x8000, 0x7FFF)); // send current in 0.01 A steps, range is -320A to 320A
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case MSP_ARMING_CONFIG:
|
case MSP_ARMING_CONFIG:
|
||||||
sbufWriteU8(dst, armingConfig()->auto_disarm_delay);
|
sbufWriteU8(dst, armingConfig()->auto_disarm_delay);
|
||||||
sbufWriteU8(dst, armingConfig()->disarm_kill_switch);
|
sbufWriteU8(dst, armingConfig()->disarm_kill_switch);
|
||||||
|
|
Loading…
Reference in New Issue