Copter: make if statement clearer

This commit is contained in:
Andrew Tridgell 2013-04-21 07:25:52 +10:00
parent 36041bb9ff
commit c53ede506d

View File

@ -1292,7 +1292,7 @@ static void super_slow_loop()
}
// log battery info to the dataflash
if (g.log_bitmask & MASK_LOG_CURRENT && motors.armed())
if ((g.log_bitmask & MASK_LOG_CURRENT) && motors.armed())
Log_Write_Current();
// this function disarms the copter if it has been sitting on the ground for any moment of time greater than 25 seconds