mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL_Linux: ToneAlarm_Raspilot: add fixme comment
This commit is contained in:
parent
e122b2b651
commit
4f14b9b7e2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user