Skip to content

Commit fb5e21a

Browse files
Xeenychmluis1
authored andcommitted
Fixed IAR C++ Compiler warning
Warning[Pa118]: mixing boolean and non-boolean types in a comparison results in the boolean being promoted
1 parent 0102748 commit fb5e21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/radio/sx1276/sx1276.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ void SX1276OnDio2Irq( void* context )
17691769
SX1276.Settings.FskPacketHandler.PreambleDetected = true;
17701770
}
17711771

1772-
if( ( SX1276.Settings.FskPacketHandler.PreambleDetected == true ) && ( SX1276.Settings.FskPacketHandler.SyncWordDetected == false ) )
1772+
if( ( SX1276.Settings.FskPacketHandler.PreambleDetected != 0 ) && ( SX1276.Settings.FskPacketHandler.SyncWordDetected == 0 ) )
17731773
{
17741774
TimerStop( &RxTimeoutSyncWord );
17751775

0 commit comments

Comments
 (0)