I believe there is an issue with the RealTimeClock SetTime that appears to be randomly locking up the G400D. I’ve attached a code snippet.
using System;
using Microsoft.SPOT;
using GHI.Premium.Hardware;
namespace MFConsoleApplication1
{
public class Program
{
public static void Main()
{
DateTime CurTime = DateTime.Now;
int Count = 0;
do
{
Count++;
CurTime = DateTime.Now;
SetClock(CurTime);
Debug.Print(Count.ToString() + " - Clock Set - " + CurTime.ToString());
System.Threading.Thread.Sleep(5 * 1000);
} while (true);
}
static void SetClock(DateTime CurrentDateTime)
{
Debug.Print("SetClock - RealTimeClock.SetTime" + CurrentDateTime.ToString());
RealTimeClock.SetTime(CurrentDateTime);
Debug.Print("SetClock - RealTimeClock Updated!");
}
}
}