mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
fix up tests
This commit is contained in:
parent
3a47b3eb42
commit
ef7225624b
5 changed files with 16 additions and 9 deletions
|
@ -3,8 +3,8 @@
|
|||
#include "../../../USER_SETTINGS.h"
|
||||
#include "../config.h"
|
||||
|
||||
static unsigned long previous_millis = 0;
|
||||
static uint32_t time_seconds = 0;
|
||||
unsigned long previous_millis = 0;
|
||||
uint32_t time_seconds = 0;
|
||||
static uint8_t total_led_color = GREEN;
|
||||
static char event_message[256];
|
||||
EVENTS_STRUCT_TYPE entries[EVENT_NOF_EVENTS];
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#ifndef UNIT_TEST
|
||||
#include <Arduino.h>
|
||||
extern unsigned long time_seconds;
|
||||
extern uint32_t previous_millis;
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -65,8 +65,8 @@ extern uint16_t OBC_Charge_Power;
|
|||
*/
|
||||
void init_webserver();
|
||||
|
||||
/*
|
||||
* @brief loop for monitoring wifi.
|
||||
/**
|
||||
* @brief Monitoring loop for WiFi. Will attempt to reconnect to access point if the connection goes down.
|
||||
*
|
||||
* @param[in] void
|
||||
*
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
// The test library must be included first!
|
||||
#include "test_lib.h"
|
||||
#include "../test_lib.h"
|
||||
|
||||
#include "events.cpp"
|
||||
#include "../../Software/src/devboard/utils/events.h"
|
||||
|
||||
#define EVENTLOGGING
|
||||
#define DUMMY_EVENT_ENABLED true
|
||||
|
||||
/* Helper functions */
|
||||
static char event_message[256]; // Declare the event_message variable
|
||||
|
||||
static void reset_event_msg(void) {
|
||||
snprintf(event_message, sizeof(event_message), "");
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// The test library must be included first!
|
||||
#include "../test_lib.h"
|
||||
|
||||
#include "timer.cpp"
|
||||
#include "../../Software/src/devboard/utils/timer.cpp"
|
||||
|
||||
/* Helper functions */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue