mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 20:08:11 +00:00
Update Devo_cyrf6936.ino
This commit is contained in:
parent
07df1a8959
commit
d7c24d62ed
@ -185,16 +185,18 @@ static void __attribute__((unused)) DEVO_float_to_ints(uint8_t *ptr, uint16_t *v
|
||||
}
|
||||
if(ptr[i] < '0' || ptr[i] > '9')
|
||||
{
|
||||
if(value!=0 || seen_decimal)
|
||||
break;
|
||||
continue;
|
||||
if(*value != 0 || seen_decimal)
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(seen_decimal)
|
||||
*decimal = *decimal * 10 + (ptr[i] - '0');
|
||||
else
|
||||
*value = *value * 10 + (ptr[i] - '0');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void __attribute__((unused)) DEVO_parse_telemetry_packet()
|
||||
{ // Telemetry packets every 2.4ms
|
||||
|
Loading…
x
Reference in New Issue
Block a user