AP_VideoTX: Change from division to multiplication

This commit is contained in:
murata 2022-03-12 02:38:56 +09:00 committed by Andrew Tridgell
parent cad63eb6b6
commit 5d2c49e202
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ void AP_VideoTX::set_power_dbm(uint8_t power) {
_current_power = 800;
break;
default:
_current_power = uint16_t(roundf(powf(10, power / 10.0f)));
_current_power = uint16_t(roundf(powf(10, power * 0.1f)));
break;
}
}