mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Fix compilation error
This commit is contained in:
parent
0b0f66c94a
commit
c82183b46a
4 changed files with 5 additions and 4 deletions
|
@ -130,9 +130,7 @@ void setup() {
|
||||||
init_webserver();
|
init_webserver();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EVENTLOGGING
|
|
||||||
init_events();
|
init_events();
|
||||||
#endif
|
|
||||||
|
|
||||||
init_CAN();
|
init_CAN();
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ void init_events(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_event(EVENTS_ENUM_TYPE event, uint8_t data) {
|
void set_event(EVENTS_ENUM_TYPE event, uint8_t data) {
|
||||||
#ifdef EVENTLOGGING
|
|
||||||
if (event >= EVENT_NOF_EVENTS) {
|
if (event >= EVENT_NOF_EVENTS) {
|
||||||
event = EVENT_UNKNOWN_EVENT_SET;
|
event = EVENT_UNKNOWN_EVENT_SET;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +41,6 @@ void set_event(EVENTS_ENUM_TYPE event, uint8_t data) {
|
||||||
Serial.println("Set event: " + String(get_event_enum_string(event)) + ". Has occured " +
|
Serial.println("Set event: " + String(get_event_enum_string(event)) + ". Has occured " +
|
||||||
String(entries[event].occurences) + " times");
|
String(entries[event].occurences) + " times");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_event_timestamps(void) {
|
void update_event_timestamps(void) {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef CELLMONITOR_H
|
#ifndef CELLMONITOR_H
|
||||||
#define CELLMONITOR_H
|
#define CELLMONITOR_H
|
||||||
|
|
||||||
|
#include <Arduino.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
extern uint16_t cell_max_voltage; //mV, 0-4350
|
extern uint16_t cell_max_voltage; //mV, 0-4350
|
||||||
extern uint16_t cell_min_voltage; //mV, 0-4350
|
extern uint16_t cell_min_voltage; //mV, 0-4350
|
||||||
extern uint16_t cellvoltages[120]; //mV 0-4350 per cell
|
extern uint16_t cellvoltages[120]; //mV 0-4350 per cell
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef SETTINGS_H
|
#ifndef SETTINGS_H
|
||||||
#define SETTINGS_H
|
#define SETTINGS_H
|
||||||
|
|
||||||
|
#include <Arduino.h>
|
||||||
|
|
||||||
#include "../../../USER_SETTINGS.h" // Needed for WiFi ssid and password
|
#include "../../../USER_SETTINGS.h" // Needed for WiFi ssid and password
|
||||||
extern uint16_t battery_voltage; //V+1, 0-500.0 (0-5000)
|
extern uint16_t battery_voltage; //V+1, 0-500.0 (0-5000)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue