Add support for STM32F4

This commit is contained in:
fvanroie 2021-02-24 22:37:03 +01:00
parent cea0439c75
commit 43bfcae843

View File

@ -25,6 +25,8 @@
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#include <WiFiUdp.h>
#elif defined(STM32F4xx)
#include <time.h>
#endif
#include "hasp_conf.h"
@ -336,11 +338,12 @@ static void debugPrintTimestamp(int level, Print* _logOutput)
struct tm* timeinfo;
int rslt;
rslt = gettimeofday(&tval, NULL);
/* rslt = gettimeofday(&tval, NULL);
if(rslt) {
// uint32_t msecs = millis();
// _logOutput->printf(PSTR("[%9d.%03d]"), msecs / 1000, msecs % 1000);
} else {
} else */
{
timeinfo = localtime(&tval.tv_sec);
}