Skip to content

Commit

Permalink
Adjust upper battery reading
Browse files Browse the repository at this point in the history
  • Loading branch information
filipbudisa committed Oct 30, 2024
1 parent 392832a commit 7dc418f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/Devices/Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

static const char* TAG = "Battery";

#define MAX_READ 2500 // 4.2V
#define MAX_READ 2380 // 4.2V
#define MIN_READ 2100 // 3.6V

Battery::Battery() : Threaded("Battery", 3 * 1024, 5, 1), adc((gpio_num_t) PIN_BATT, 0.05, MIN_READ, MAX_READ, getVoltOffset()),
Expand Down

0 comments on commit 7dc418f

Please sign in to comment.