Index: RTC.c =================================================================== diff -u -rbe0b3956744600e9db09eea5d404fd6c15e15764 -r900bc5e3b8eea32d193f457ba9abccc7fc929705 --- RTC.c (.../RTC.c) (revision be0b3956744600e9db09eea5d404fd6c15e15764) +++ RTC.c (.../RTC.c) (revision 900bc5e3b8eea32d193f457ba9abccc7fc929705) @@ -19,6 +19,7 @@ #include "Timers.h" #include "RTC.h" #include "mibspi.h" +#include "SystemCommMessages.h" // ********** Definitions ********** @@ -244,6 +245,13 @@ txBuffer[ 8 ] = convertDecimal2BCD( 0 ); // Weekdays will not be used txBuffer[ 9 ] = convertDecimal2BCD( months ); txBuffer[ 10 ] = convertDecimal2BCD( years - YEAR_2000 ); + /*txBuffer[ 4 ] = ( secs ); + txBuffer[ 5 ] = ( mins ); + txBuffer[ 6 ] = ( hours ); + txBuffer[ 7 ] = ( days ); + txBuffer[ 8 ] = ( 0 ); // Weekdays will not be used + txBuffer[ 9 ] = ( months ); + txBuffer[ 10 ] = ( years - YEAR_2000 ); */ } /************************************************************************* @@ -1107,6 +1115,7 @@ updateReadTimestampStruct(); lastEpochTime = convertTime2Epoch(); timeCounter = 1; + broadcastRTCEpoch( lastEpochTime ); result = RTC_EXEC_STATE_IDLE; } else