Fixed setting time bug, because of uninitialized tm struct
This commit is contained in:
parent
4bc59d1a33
commit
6072c34eef
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) by BlackMark 2017
|
||||
* Date 17/12/2017
|
||||
* Version 1.2
|
||||
* Copyright (c) by BlackMark 2017-2018
|
||||
* Date 02/01/2018
|
||||
* Version 1.3
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -32,7 +32,7 @@ void setTime()
|
||||
{
|
||||
USART0 &cSerial = USART0::inst();
|
||||
|
||||
tm sTime;
|
||||
tm sTime = {};
|
||||
|
||||
constexpr auto BUFFER_SIZE = 32;
|
||||
char szBuffer[BUFFER_SIZE];
|
||||
|
Loading…
Reference in New Issue
Block a user