Skip to content

Commit dc512e9

Browse files
authored
Fix ESPTime namespace in ht16kk33_alpha (#56)
1 parent 680b52d commit dc512e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/ht16k33_alpha/ht16k33_display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void HT16K33AlphaDisplay::printf(const char *format, ...) {
136136
}
137137

138138
#ifdef USE_TIME
139-
void HT16K33AlphaDisplay::strftime(const char *format, time::ESPTime time) {
139+
void HT16K33AlphaDisplay::strftime(const char *format, ESPTime time) {
140140
char buffer[64];
141141
size_t ret = time.strftime(buffer, sizeof(buffer), format);
142142
if (ret > 0)

components/ht16k33_alpha/ht16k33_display.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#ifdef USE_TIME
88
#include "esphome/components/time/real_time_clock.h"
9+
#include "esphome/core/time.h"
910
#endif
1011

1112
namespace esphome {
@@ -36,7 +37,7 @@ class HT16K33AlphaDisplay : public PollingComponent, public i2c::I2CDevice {
3637

3738
#ifdef USE_TIME
3839
/// Evaluate the strftime-format and print the text
39-
void strftime(const char *format, time::ESPTime time) __attribute__((format(strftime, 2, 0)));
40+
void strftime(const char *format, ESPTime time) __attribute__((format(strftime, 2, 0)));
4041
#endif
4142

4243
protected:

0 commit comments

Comments
 (0)