Skip to content

Commit afa499d

Browse files
authored
Refactor battery pin mode setting in interface.cpp
Remove unused battery pin mode setting under certain conditions.
1 parent 9bf39fb commit afa499d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

boards/lilygo-t-embed-cc1101/interface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ void _setup_gpio() {
6969
PPM.enableCharge();
7070
}
7171
if (bq.getDesignCap() != BATTERY_DESIGN_CAPACITY) { bq.setDesignCap(BATTERY_DESIGN_CAPACITY); }
72-
#else
73-
pinMode(BAT_PIN, INPUT); // Battery value
72+
7473
#endif
7574

7675
#ifdef T_EMBED_1101

0 commit comments

Comments
 (0)