Skip to content

Commit

Permalink
Fix for SITL compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MrD-RC committed Sep 27, 2024
1 parent cd61409 commit 5b3b601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/fc/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -3716,7 +3716,7 @@ static void cliSet(char *cmdline)
if (changeValue) {
// If changing the battery capacity unit, update the osd stats energy unit to match
if (strcmp(name, "battery_capacity_unit") == 0) {
if (batteryMetersConfig()->capacity_unit != tmp.int_value) {
if (batteryMetersConfig()->capacity_unit != (uint8_t)tmp.int_value) {
if (tmp.int_value == BAT_CAPACITY_UNIT_MAH) {
osdConfigMutable()->stats_energy_unit = OSD_STATS_ENERGY_UNIT_MAH;
} else {
Expand Down

0 comments on commit 5b3b601

Please sign in to comment.