heinbali01 wrote on Thursday, August 04, 2016:
I do not have RTC
But you dohave NTP
What I often do is synchronise with NTP and use FreeRTOS to maintain the real time.
I was trying to optimize footprint
I’m not sure if it saves a lot of code. Have you calculated that?
I had the impression that some “time” stuff drawn in from glibc. But I’m not sure.
Not that I’m aware off. Several time-functions have been rewritten in order make it independent from the libraries provided by the compiler.
Now if you insist on not using time-support, I (or you) could make a change, remove the MDTM line from:
static const char pcFeatAnswer =
#if( ffconfigTIME_SUPPORT != 0 )
" REST STREAM\x0a"
#if ffconfigTIME_SUPPORT == 0
xLength = snprintf( pcCOMMAND_BUFFER,
sizeof( pcCOMMAND_BUFFER ),
// return the time