Replace timing values with microsecond variants.

This commit is contained in:
2023-08-31 01:27:05 +02:00
parent cea4b0d52a
commit 8598e019d4
3 changed files with 125 additions and 114 deletions

View File

@@ -12,10 +12,10 @@ extern ESP8266WebServer webserver;
typedef struct
{
int nightmode_start_hour;
int nightmode_start_min;
int nightmode_end_hour;
int nightmode_end_min;
int start_hour;
int start_min;
int end_hour;
int end_min;
} NightModeTimes_st;
typedef enum
@@ -30,11 +30,10 @@ typedef enum
NUM_STATES
} ClockState_en;
#define CURRENT_TIME_MS (system_get_time() / 1000) // use ESP time interface
int EEPROM_read_address(int address);
String leading_zero2digit(int value);
void check_night_mode(void);
void check_wifi_status(void);
void EEPROM_write_to_address(int address, int value);
void handle_button(void);
void handle_command(void);
@@ -42,7 +41,7 @@ void handle_current_state(void);
void handle_data_request(void);
void handle_led_direct(void);
void load_main_color(void);
void ntp_time_update(unsigned long *last_ntp_update);
void ntp_time_update(uint32 *last_ntp_update_us);
void on_state_entry(uint8_t state);
void send_heartbeat(void);
void set_main_color(uint8_t red, uint8_t green, uint8_t blue);