Skip to content

Commit

Permalink
Merge pull request #53 from frittes/main
Browse files Browse the repository at this point in the history
Fix compile error for esphome version greater than 2023.6.1
  • Loading branch information
lubeda authored Jun 23, 2023
2 parents 5798f3e + c72b948 commit 2adb7a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/ehmtxv2/EHMTX.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef EHMTX_H
#define EHMTX_H
#include "esphome.h"
#include "esphome/components/time/real_time_clock.h"

const uint8_t MAXQUEUE = 24;
const uint8_t C_RED = 240; // default
Expand Down Expand Up @@ -106,7 +107,7 @@ namespace esphome

EHMTX_queue *queue[MAXQUEUE];
addressable_light::AddressableLightDisplay *display;
time::RealTimeClock *clock;
esphome::time::RealTimeClock *clock;

bool show_seconds;
uint16_t hold_time; // seconds display of screen_time to extend
Expand Down Expand Up @@ -145,7 +146,7 @@ namespace esphome
void set_brightness(int b);
void set_display_on();
void set_display_off();
void set_clock(time::RealTimeClock *clock);
void set_clock(esphome::time::RealTimeClock *clock);
void set_default_font(display::Font *font);
void set_special_font(display::Font *font);
void show_rindicator(int r = C_RED, int g = C_GREEN, int b = C_BLUE, int s = 3);
Expand Down

0 comments on commit 2adb7a9

Please sign in to comment.