Fixed setting time bug, because of uninitialized tm struct

This commit is contained in:
BlackMark 2018-01-02 17:21:04 +01:00
parent 4bc59d1a33
commit 6072c34eef

View File

@ -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];