mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Fix time components on rp2040 (#4024)
This commit is contained in:
		| @@ -10,6 +10,9 @@ | |||||||
| #ifdef USE_ESP8266 | #ifdef USE_ESP8266 | ||||||
| #include "sntp.h" | #include "sntp.h" | ||||||
| #endif | #endif | ||||||
|  | #ifdef USE_RP2040 | ||||||
|  | #include "lwip/apps/sntp.h" | ||||||
|  | #endif | ||||||
|  |  | ||||||
| // Yes, the server names are leaked, but that's fine. | // Yes, the server names are leaked, but that's fine. | ||||||
| #ifdef CLANG_TIDY | #ifdef CLANG_TIDY | ||||||
|   | |||||||
| @@ -4,6 +4,9 @@ | |||||||
| #ifdef USE_ESP8266 | #ifdef USE_ESP8266 | ||||||
| #include "sys/time.h" | #include "sys/time.h" | ||||||
| #endif | #endif | ||||||
|  | #ifdef USE_RP2040 | ||||||
|  | #include <sys/time.h> | ||||||
|  | #endif | ||||||
| #include <cerrno> | #include <cerrno> | ||||||
|  |  | ||||||
| namespace esphome { | namespace esphome { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user