AP_HAL_Linux: ToneAlarm_Raspilot: add fixme comment

This commit is contained in:
Lucas De Marchi 2016-06-20 11:10:36 -03:00
parent e122b2b651
commit 4f14b9b7e2

View File

@ -183,6 +183,7 @@ void ToneAlarm_Raspilot::_set_pwm0_duty(uint8_t percent)
int bit_count = constrain_int32(320 * percent / 100, 320, 0); int bit_count = constrain_int32(320 * percent / 100, 320, 0);
unsigned int bits = 0; unsigned int bits = 0;
// FIXME: bits overflows for any bit_count > 32
while (bit_count) { while (bit_count) {
bits <<= 1; bits <<= 1;
bits |= 1; bits |= 1;