mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 19:56:44 +00:00
Add support for STM32F4
This commit is contained in:
parent
cea0439c75
commit
43bfcae843
@ -25,6 +25,8 @@
|
|||||||
#elif defined(ARDUINO_ARCH_ESP32)
|
#elif defined(ARDUINO_ARCH_ESP32)
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <WiFiUdp.h>
|
#include <WiFiUdp.h>
|
||||||
|
#elif defined(STM32F4xx)
|
||||||
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "hasp_conf.h"
|
#include "hasp_conf.h"
|
||||||
@ -336,11 +338,12 @@ static void debugPrintTimestamp(int level, Print* _logOutput)
|
|||||||
struct tm* timeinfo;
|
struct tm* timeinfo;
|
||||||
int rslt;
|
int rslt;
|
||||||
|
|
||||||
rslt = gettimeofday(&tval, NULL);
|
/* rslt = gettimeofday(&tval, NULL);
|
||||||
if(rslt) {
|
if(rslt) {
|
||||||
// uint32_t msecs = millis();
|
// uint32_t msecs = millis();
|
||||||
// _logOutput->printf(PSTR("[%9d.%03d]"), msecs / 1000, msecs % 1000);
|
// _logOutput->printf(PSTR("[%9d.%03d]"), msecs / 1000, msecs % 1000);
|
||||||
} else {
|
} else */
|
||||||
|
{
|
||||||
timeinfo = localtime(&tval.tv_sec);
|
timeinfo = localtime(&tval.tv_sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user