mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
HAL_SMACCM: fixed build warning
This commit is contained in:
parent
130aaae168
commit
63634c4e8a
@ -155,10 +155,10 @@ bool SMACCMConsoleDriver::Buffer::allocate(uint16_t size)
|
||||
uint8_t shift;
|
||||
/* Hardcoded max size of 1024. sue me. */
|
||||
for ( shift = 1;
|
||||
( 1 << shift ) < 1024 && ( 1 << shift) < size;
|
||||
( 1U << shift ) < 1024 && ( 1U << shift) < size;
|
||||
shift++
|
||||
) ;
|
||||
uint16_t tmpmask = (1 << shift) - 1;
|
||||
uint16_t tmpmask = (1U << shift) - 1;
|
||||
|
||||
if ( _bytes != NULL ) {
|
||||
if ( _mask == tmpmask ) {
|
||||
|
Loading…
Reference in New Issue
Block a user