mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Fix signed comparison warning
This commit is contained in:
parent
6c2ce5038c
commit
a0f3ee6315
1 changed files with 5 additions and 3 deletions
|
@ -1141,7 +1141,7 @@ static void blackboxPlaySyncBeep()
|
|||
|
||||
void handleBlackbox(void)
|
||||
{
|
||||
int i;
|
||||
int i, result;
|
||||
|
||||
switch (blackboxState) {
|
||||
case BLACKBOX_STATE_SEND_HEADER:
|
||||
|
@ -1185,10 +1185,12 @@ void handleBlackbox(void)
|
|||
break;
|
||||
case BLACKBOX_STATE_SEND_SYSINFO:
|
||||
//On entry of this state, headerXmitIndex is 0
|
||||
headerXmitIndex = blackboxWriteSysinfo(headerXmitIndex);
|
||||
result = blackboxWriteSysinfo(headerXmitIndex);
|
||||
|
||||
if (headerXmitIndex == -1)
|
||||
if (result == -1)
|
||||
blackboxSetState(BLACKBOX_STATE_PRERUN);
|
||||
else
|
||||
headerXmitIndex = result;
|
||||
break;
|
||||
case BLACKBOX_STATE_PRERUN:
|
||||
blackboxPlaySyncBeep();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue