mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Compilation fix
This commit is contained in:
parent
3090a9bb3d
commit
cc1196db3d
1 changed files with 1 additions and 2 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue