1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-25 01:05:08 +03:00

Compilation fix

This commit is contained in:
Bertrand Songis 2019-07-15 21:40:09 +02:00
parent 3090a9bb3d
commit cc1196db3d
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -120,14 +120,13 @@ void FrskyDeviceFirmwareUpdate::startup()
bool FrskyDeviceFirmwareUpdate::readBuffer(uint8_t * buffer, uint8_t count, uint32_t timeout)
{
uint32_t elapsed = 0;
watchdogSuspend(timeout);
switch(module) {
#if defined(INTMODULE_USART)
case INTERNAL_MODULE:
{
uint32_t elapsed = 0;
uint8_t index = 0;
while (index < count && elapsed < timeout) {
if (intmoduleFifo.pop(buffer[index])) {