Hitec: typo in telemetry

This commit is contained in:
Pascal Langer 2018-08-08 12:44:56 +02:00
parent 73dd63caa1
commit d0c9bc801b
2 changed files with 7 additions and 7 deletions

View File

@ -329,14 +329,14 @@ uint16_t ReadHITEC()
#if defined(HITEC_HUB_TELEMETRY) #if defined(HITEC_HUB_TELEMETRY)
switch(pkt[5]) // telemetry frame number switch(pkt[5]) // telemetry frame number
{ {
case 0: case 0x00:
v_lipo1 = (pkt[12])<<5 | (pkt[11])>>3; // calculation in decimal is volt=(pkt[12]<<8+pkt[11])/28 v_lipo1 = (pkt[12])<<5 | (pkt[11])>>3; // calculation in float is volt=(pkt[12]<<8+pkt[11])/28
break; break;
case 11: case 0x11:
v_lipo1 = (pkt[11])<<5 | (pkt[10])>>3; // calculation in decimal is volt=(pkt[11]<<8+pkt[10])/28 v_lipo1 = (pkt[11])<<5 | (pkt[10])>>3; // calculation in float is volt=(pkt[11]<<8+pkt[10])/28
break; break;
case 18: case 0x18:
v_lipo2 = (pkt[6])<<5 | (pkt[7])>>3; // calculation in decimal is volt=(pkt[6]<<8+pkt[7])/10 v_lipo2 = (pkt[6])<<5 | (pkt[7])>>3; // calculation in float is volt=(pkt[6]<<8+pkt[7])/10
break; break;
} }
TX_RSSI = pkt[13]; TX_RSSI = pkt[13];

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_REVISION 0 #define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 29 #define VERSION_PATCH_LEVEL 30
//****************** //******************
// Protocols // Protocols