Skip to content

Commit

Permalink
put back battery scale hack
Browse files Browse the repository at this point in the history
  • Loading branch information
rochuck committed Sep 14, 2020
1 parent 48b5f80 commit bac2967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions components/services/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ static void battery_callback(TimerHandle_t xTimer) {
void battery_svc_init(void) {
#ifdef CONFIG_BAT_SCALE
battery.scale = atof(CONFIG_BAT_SCALE);
/** @todo CGR fix this properly */
battery.scale = 21.11;
#endif

char *nvs_item = config_alloc_get_default(NVS_TYPE_STR, "bat_config", "n", 0);
Expand Down
4 changes: 0 additions & 4 deletions components/services/monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ extern bool jack_inserted_svc(void);
extern void (*spkfault_handler_svc)(bool inserted);
extern bool spkfault_svc(void);

<<<<<<< HEAD
extern double battery_value_svc(void);
=======
extern float battery_value_svc(void);
>>>>>>> master-cmake
extern uint8_t battery_level_svc(void);

0 comments on commit bac2967

Please sign in to comment.