HoTT: telem code cleanup

This commit is contained in:
Pascal Langer 2020-06-05 22:44:32 +02:00
parent 374b46966c
commit 0316c9eea9
2 changed files with 12 additions and 9 deletions

View File

@ -443,15 +443,18 @@ uint16_t ReadHOTT()
HOTT_sensor_pages = 0x1E; // Switch to next sensor HOTT_sensor_pages = 0x1E; // Switch to next sensor
} }
} }
if(HOTT_sensor_valid && packet_in[11] ) // Valid & page !=0 if(packet_in[11])
{ //Page != 0
if(HOTT_sensor_valid) // Valid
{ {
packet_in[10] = HOTT_sensor_cur+9; // Marking telem with sensor ID packet_in[10] = HOTT_sensor_cur+9; // Mark telem with sensor ID
HOTT_sensor_pages |= 1<<packet_in[11]; // Page received HOTT_sensor_pages |= 1<<packet_in[11]; // Page received
} }
if(packet_in[11] && !HOTT_sensor_valid) else
send_telem=false; send_telem=false; // Do not send
if(packet_in[11]==0) }
packet_in[10]=0; else
packet_in[10]=0; // Mark telem with sensor 0=RX
} }
debug("T%d=",send_telem); debug("T%d=",send_telem);
for(uint8_t i=10;i < HOTT_RX_PACKET_LEN; i++) for(uint8_t i=10;i < HOTT_RX_PACKET_LEN; i++)

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 11 #define VERSION_PATCH_LEVEL 12
//****************** //******************
// Protocols // Protocols