Corrected typo.
This commit is contained in:
@@ -69,7 +69,7 @@ void PeripheralsWriteByte (uint8_t Addr, uint8_t Val)
|
|||||||
/* clock_gettime() is not available in the Visual Studio compiler. Use timespec_get() instead. */
|
/* clock_gettime() is not available in the Visual Studio compiler. Use timespec_get() instead. */
|
||||||
bool time_valid = timespec_get(&ts, TIME_UTC) == TIME_UTC;
|
bool time_valid = timespec_get(&ts, TIME_UTC) == TIME_UTC;
|
||||||
#else
|
#else
|
||||||
/* clock_gettime() is available on Linux, MacOS, MinGW32, and MinGW64.
|
/* clock_gettime() is available on Linux, MacOS, MinGW32, and MinGW64. */
|
||||||
bool time_valid = clock_gettime(CLOCK_REALTIME, &ts) == 0;
|
bool time_valid = clock_gettime(CLOCK_REALTIME, &ts) == 0;
|
||||||
#endif
|
#endif
|
||||||
if (time_valid) {
|
if (time_valid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user