Skip to content

Commit 108f236

Browse files
committed
fix: offline standalone compiling
1 parent d47fcda commit 108f236

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

lib/uuid-common/src/get_uptime_ms.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ uint32_t get_uptime_sec() {
3131
}
3232

3333
uint64_t get_uptime_ms() {
34-
return now_millis;;
34+
return now_millis;
3535
}
3636

3737
void set_uptime() {

lib_standalone/Arduino.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ unsigned long millis() {
6161
return __millis;
6262
}
6363

64+
int64_t esp_timer_get_time() {
65+
return __millis;
66+
}
67+
6468
void delay(unsigned long millis) {
6569
// __millis += millis;
6670
}

lib_standalone/Arduino.h

+5-7
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ int digitalRead(uint8_t pin);
5353

5454
#define PROGMEM
5555
#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
6157

6258
class __FlashStringHelper;
6359
#define FPSTR(string_literal) (reinterpret_cast<const __FlashStringHelper *>(string_literal))
@@ -196,11 +192,13 @@ class NativeConsole : public Stream {
196192
#include <Network.h>
197193

198194
extern NativeConsole Serial;
199-
extern ETHClass ETH;
200-
extern WiFiClass WiFi;
195+
extern ETHClass ETH;
196+
extern WiFiClass WiFi;
201197

202198
unsigned long millis();
203199

200+
int64_t esp_timer_get_time();
201+
204202
void delay(unsigned long millis);
205203

206204
void yield(void);

0 commit comments

Comments
 (0)