Fix openCom XL compilation

This commit is contained in:
jacob.eva 2024-10-16 21:24:18 +01:00
parent 17ff4b0496
commit 18780131d8
No known key found for this signature in database
GPG key ID: 0B92E083BBCCAA1E
5 changed files with 14 additions and 12 deletions

View file

@ -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;