Fix: Hubsan telemetry packet check function

This commit is contained in:
pascallanger 2016-01-28 19:31:03 +01:00
parent 9d3b1d75d1
commit b9e45c4bb0

View File

@ -181,11 +181,10 @@ static void __attribute__((unused)) hubsan_build_packet()
}
#if defined(TELEMETRY)
static __attribute__((unused)) uint8_t hubsan_check_integrity()
static uint8_t __attribute__((unused)) hubsan_check_integrity()
{
if( (packet[0]&0xFE) != 0xE0 )
return 0;
return 1;
uint8_t sum = 0;
for(uint8_t i = 0; i < 15; i++)
sum += packet[i];