Skip to content

Commit

Permalink
Add compilation error for missing battery
Browse files Browse the repository at this point in the history
  • Loading branch information
dalathegreat committed Nov 22, 2023
1 parent baa7841 commit 79709ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Software/Software.ino
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ void inform_user_on_battery() {
#ifdef TEST_FAKE_BATTERY
Serial.println("Test mode with fake battery selected");
#endif
#if !defined(ABSOLUTE_MAX_VOLTAGE)
#error No battery selected! Choose one from the USER_SETTINGS.h file
#endif
}

// Functions
Expand Down

0 comments on commit 79709ea

Please sign in to comment.