Commit 108f236 1 parent d47fcda commit 108f236 Copy full SHA for 108f236
File tree 3 files changed +10
-8
lines changed
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ uint32_t get_uptime_sec() {
31
31
}
32
32
33
33
uint64_t get_uptime_ms () {
34
- return now_millis;;
34
+ return now_millis;
35
35
}
36
36
37
37
void set_uptime () {
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ unsigned long millis() {
61
61
return __millis;
62
62
}
63
63
64
+ int64_t esp_timer_get_time () {
65
+ return __millis;
66
+ }
67
+
64
68
void delay (unsigned long millis) {
65
69
// __millis += millis;
66
70
}
Original file line number Diff line number Diff line change @@ -53,11 +53,7 @@ int digitalRead(uint8_t pin);
53
53
54
54
#define PROGMEM
55
55
#define PGM_P const char *
56
- #define PSTR (s ) \
57
- (__extension__({ \
58
- static const char __c[] = (s); \
59
- &__c[0 ]; \
60
- }))
56
+ #define PSTR (s ) s
61
57
62
58
class __FlashStringHelper ;
63
59
#define FPSTR (string_literal ) (reinterpret_cast <const __FlashStringHelper *>(string_literal))
@@ -196,11 +192,13 @@ class NativeConsole : public Stream {
196
192
#include < Network.h>
197
193
198
194
extern NativeConsole Serial;
199
- extern ETHClass ETH;
200
- extern WiFiClass WiFi;
195
+ extern ETHClass ETH;
196
+ extern WiFiClass WiFi;
201
197
202
198
unsigned long millis ();
203
199
200
+ int64_t esp_timer_get_time ();
201
+
204
202
void delay (unsigned long millis);
205
203
206
204
void yield (void );
You can’t perform that action at this time.
0 commit comments