Skip to content

Commit 52a1f83

Browse files
committed
Remove double instantiation
1 parent 18c509b commit 52a1f83

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Diff for: examples/Battery/Battery.ino

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ void setup() {
3838
while (!Serial);
3939
delay(1000); // Delay to give time to load the Serial Monitor
4040

41-
charger = Charger();
4241
charger.begin();
4342
auto chargeVoltage = charger.getChargeVoltage();
4443
auto endOfChargeCurrent = charger.getEndOfChargeCurrent();

Diff for: examples/Charger/Charger.ino

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void setup() {
3939
for (auto start = millis(); !Serial && millis() - start < 5000;);
4040
delay(1000); // Delay to give time to load the Serial Monitor
4141

42-
charger = Charger();
4342
if(!charger.begin()){
4443
Serial.println("Charger initialization failed.");
4544
while (true);

0 commit comments

Comments
 (0)