1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

info box with voltage & rssi on initial setup

This commit is contained in:
cTn 2014-04-03 14:33:30 +02:00
parent 2977f9725b
commit e0510603d8
4 changed files with 69 additions and 39 deletions

View file

@ -244,7 +244,7 @@ MSP.process_data = function(code, message_buffer, message_length) {
case MSP_codes.MSP_ANALOG:
ANALOG.voltage = data.getUint8(0) / 10.0;
ANALOG.power = data.getUint16(1, 1);
ANALOG.rssi = data.getUint16(3, 1);
ANALOG.rssi = data.getUint16(3, 1); // 0-1023
ANALOG.amperage = data.getUint16(5, 1);
break;
case MSP_codes.MSP_RC_TUNING: