Use 'MACHINE_TYPE' instead of 'PROTOCOL_VERSION' to determine firmware version.

This commit is contained in:
Kevin Pope 2014-03-12 14:57:25 -07:00
parent 26d2730516
commit 9e8bdc995f
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ namespace MatterHackers.MatterControl
DataStorage.ApplicationSession firstSession;
firstSession = DataStorage.Datastore.Instance.dbSQLite.Table<DataStorage.ApplicationSession>().OrderBy(v => v.SessionStart).Take(1).FirstOrDefault();
if (firstSession != null
&& DateTime.Compare(firstSession.SessionStart.AddDays(14), DateTime.Now) < 0)
&& DateTime.Compare(firstSession.SessionStart.AddDays(7), DateTime.Now) < 0)
{
NeedToCheckForUpdateFirstTimeEver = true;
}

View file

@ -973,7 +973,7 @@ namespace MatterHackers.MatterControl
}
}
string firmwareVersionReported = "";
if (GCodeFile.GetFirstStringAfter("PROTOCOL_VERSION:", foundStringEventArgs.LineToCheck, " ", ref firmwareVersionReported))
if (GCodeFile.GetFirstStringAfter("MACHINE_TYPE:", foundStringEventArgs.LineToCheck, " EXTRUDER_COUNT", ref firmwareVersionReported))
{
//Firmware version was detected and is different
if (firmwareVersionReported != "" && firmwareVersion != firmwareVersionReported)