Bayanf: fix telemetry batt

This commit is contained in:
Pascal Langer 2020-08-20 19:00:06 +02:00
parent 748140cdee
commit ea205b1e69
2 changed files with 3 additions and 3 deletions

View File

@ -221,9 +221,9 @@ static void __attribute__((unused)) BAYANG_check_rx(void)
if (packet[0] == 0x85 && packet[14] == check) if (packet[0] == 0x85 && packet[14] == check)
{ {
// uncompensated battery volts*100/2 // uncompensated battery volts*100/2
v_lipo1 = (packet[3]<<7) + (packet[4]>>2); v_lipo1 = (packet[3]<<7) + (packet[4]>>1);
// compensated battery volts*100/2 // compensated battery volts*100/2
v_lipo2 = (packet[5]<<7) + (packet[6]>>2); v_lipo2 = (packet[5]<<7) + (packet[6]>>1);
// reception in packets / sec // reception in packets / sec
RX_LQI = packet[7]; RX_LQI = packet[7];
RX_RSSI = RX_LQI; RX_RSSI = RX_LQI;

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 1 #define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 58 #define VERSION_PATCH_LEVEL 59
//****************** //******************
// Protocols // Protocols