mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Merge from main and fix conflicts
This commit is contained in:
commit
28609f18a6
16 changed files with 128 additions and 82 deletions
|
@ -398,8 +398,6 @@ EVENTS_LEVEL_TYPE get_event_level(void) {
|
|||
return events.level;
|
||||
}
|
||||
|
||||
uint64_t get_timestamp(unsigned long currentMillis);
|
||||
|
||||
/* Local functions */
|
||||
|
||||
static void set_event(EVENTS_ENUM_TYPE event, uint8_t data, bool latched) {
|
||||
|
@ -418,7 +416,7 @@ static void set_event(EVENTS_ENUM_TYPE event, uint8_t data, bool latched) {
|
|||
}
|
||||
|
||||
// We should set the event, update event info
|
||||
events.entries[event].timestamp = get_timestamp(millis());
|
||||
events.entries[event].timestamp = millis64();
|
||||
events.entries[event].data = data;
|
||||
// Check if the event is latching
|
||||
events.entries[event].state = latched ? EVENT_STATE_ACTIVE_LATCHED : EVENT_STATE_ACTIVE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue