mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-03 23:24:58 -04:00
Fix openCom XL compilation
This commit is contained in:
parent
17ff4b0496
commit
18780131d8
5 changed files with 14 additions and 12 deletions
4
Power.h
4
Power.h
|
@ -62,7 +62,7 @@
|
|||
bool bat_voltage_dropping = false;
|
||||
float bat_delay_v = 0;
|
||||
float bat_state_change_v = 0;
|
||||
#elif BOARD_MODEL == BOARD_RAK4631
|
||||
#elif BOARD_MODEL == BOARD_RAK4631 || BOARD_MODEL == BOARD_OPENCOM_XL
|
||||
#include "nrfx_power.h"
|
||||
#define BAT_C_SAMPLES 7
|
||||
#define BAT_D_SAMPLES 2
|
||||
|
@ -291,7 +291,7 @@ void measure_battery() {
|
|||
battery_ready = false;
|
||||
}
|
||||
|
||||
#elif BOARD_MODEL == BOARD_RAK4631
|
||||
#elif BOARD_MODEL == BOARD_RAK4631 || BOARD_MODEL == BOARD_OPENCOM_XL
|
||||
battery_installed = true;
|
||||
battery_indeterminate = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue