Browse Source

Erster commit

Rind 5 years ago
parent
commit
24d61d32e5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      DemoSlave/main.c

+ 5 - 0
DemoSlave/main.c

@@ -44,12 +44,17 @@ int main(void)
 	SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN);
     GfaUtilsInit();
 
+    /////////////////////////////////////////////////////////////////////////
+    // set Date, Time, Timezone
+
     if((nTzIndex = _GetRTCTDateTimeTZ(&utc)) < 0)
     	return 1;
 
 	if(!GfaTimeSetUTCDateTimeTimezone(&utc, nTzIndex))
     	return 1;
 
+	/////////////////////////////////////////////////////////////////////////
+
 	if(!GfaInitModbusSlaveApp())
     	return 1;