Skip to content

Commit bad7da8

Browse files
smartport batt sensor: fix enum MAX entries
1 parent b96b57a commit bad7da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/sensors/battery_config_structs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef enum {
3232
CURRENT_SENSOR_FAKE,
3333
CURRENT_SENSOR_ESC,
3434
CURRENT_SENSOR_SMARTPORT,
35-
CURRENT_SENSOR_MAX = CURRENT_SENSOR_FAKE
35+
CURRENT_SENSOR_MAX = CURRENT_SENSOR_SMARTPORT
3636
} currentSensor_e;
3737

3838
typedef enum {
@@ -41,7 +41,7 @@ typedef enum {
4141
VOLTAGE_SENSOR_ESC,
4242
VOLTAGE_SENSOR_FAKE,
4343
VOLTAGE_SENSOR_SMARTPORT,
44-
VOLTAGE_SENSOR_MAX = VOLTAGE_SENSOR_FAKE
44+
VOLTAGE_SENSOR_MAX = VOLTAGE_SENSOR_SMARTPORT
4545
} voltageSensor_e;
4646

4747
typedef enum {

0 commit comments

Comments
 (0)