Skip to content

Commit

Permalink
Remove double instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed May 13, 2024
1 parent 18c509b commit 52a1f83
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/Battery/Battery.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ void setup() {
while (!Serial);
delay(1000); // Delay to give time to load the Serial Monitor

charger = Charger();
charger.begin();
auto chargeVoltage = charger.getChargeVoltage();
auto endOfChargeCurrent = charger.getEndOfChargeCurrent();
Expand Down
1 change: 0 additions & 1 deletion examples/Charger/Charger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void setup() {
for (auto start = millis(); !Serial && millis() - start < 5000;);
delay(1000); // Delay to give time to load the Serial Monitor

charger = Charger();
if(!charger.begin()){
Serial.println("Charger initialization failed.");
while (true);
Expand Down

0 comments on commit 52a1f83

Please sign in to comment.