Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -rfdeda091d43e144eb63f62189c25b916b2eb5c57 -r23ebecb91f2a05526f691b611d6c1862426f171d --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision fdeda091d43e144eb63f62189c25b916b2eb5c57) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 23ebecb91f2a05526f691b611d6c1862426f171d) @@ -53,15 +53,33 @@ // Used 120 and 200 so it will not read or // write during POST static U16 test = 0; - if (test == 120) + static RTC_RAM_STATUS_T status; + static U16 returndata[5]; + if (test >= 120) { - static U16 data[5] = {17, 18, 19, 10, 22}; - writeToRAM(9, &data[0], 5); + if ( status != RTC_RAM_IN_PROGRESS ) + { + static U16 data[5] = {17, 18, 19, 10, 22}; + status = writeToRAM(119, &data[0], 5); + } + else if ( status == RTC_RAM_IN_PROGRESS ) + { + status = getRTCRAMStatus(); + } + else + { + test = 0; + status = RTC_RAM_READY; + } } if (test == 200) { - readFromRAM(9, 5); + readFromRAM(9, 5); } + if ( test == 220 ) + { + getDataFromRAM(&returndata[0], 5); + } /*if (test == 140) { setRTCTimestamp(0, 46, 13, 17, 12, 2019);