fix: offline standalone compiling

This commit is contained in:
proddy
2021-03-30 17:58:22 +02:00
parent d47fcda0fe
commit 108f236874
3 changed files with 10 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ uint32_t get_uptime_sec() {
}
uint64_t get_uptime_ms() {
return now_millis;;
return now_millis;
}
void set_uptime() {

View File

@@ -61,6 +61,10 @@ unsigned long millis() {
return __millis;
}
int64_t esp_timer_get_time() {
return __millis;
}
void delay(unsigned long millis) {
// __millis += millis;
}

View File

@@ -53,11 +53,7 @@ int digitalRead(uint8_t pin);
#define PROGMEM
#define PGM_P const char *
#define PSTR(s) \
(__extension__({ \
static const char __c[] = (s); \
&__c[0]; \
}))
#define PSTR(s) s
class __FlashStringHelper;
#define FPSTR(string_literal) (reinterpret_cast<const __FlashStringHelper *>(string_literal))
@@ -196,11 +192,13 @@ class NativeConsole : public Stream {
#include <Network.h>
extern NativeConsole Serial;
extern ETHClass ETH;
extern WiFiClass WiFi;
extern ETHClass ETH;
extern WiFiClass WiFi;
unsigned long millis();
int64_t esp_timer_get_time();
void delay(unsigned long millis);
void yield(void);