Release v1.1.1.2: Fix FW update reply and update Anti-Theft error 0x4000 alarm display
- Fix FW update freezing at first 128B by setting ReplyFlag=true in RequestFlashWrite and handling FW Update timeouts in csUartThread - Update Operating Status: remove Anti-Theft from Status (0x0004 -> TRIP) and display TRIP (Anti-Theft) in Alarm when errorCode is 0x4000 - Sync Status/Alarm string mapping in csLog for CSV data logging - Bump assembly version to v1.1.1.2
This commit is contained in:
@@ -704,16 +704,8 @@ namespace LFP_Manager.Controls
|
||||
lbStatus.ForeColor = System.Drawing.Color.Magenta;
|
||||
break;
|
||||
case 0x0004: // TRIP
|
||||
if (SystemData.StatusData.protection == 0)
|
||||
{
|
||||
lbStatus.Text = "TRIP (Anti-Theft)";
|
||||
lbStatus.ForeColor = Color.Red;
|
||||
}
|
||||
else
|
||||
{
|
||||
lbStatus.Text = "TRIP";
|
||||
lbStatus.ForeColor = Color.Red;
|
||||
}
|
||||
lbStatus.Text = "TRIP";
|
||||
lbStatus.ForeColor = Color.Red;
|
||||
break;
|
||||
case 0x0008: // Chg-Lmt
|
||||
lbStatus.Text = "CHG-LIMIT";
|
||||
@@ -745,7 +737,12 @@ namespace LFP_Manager.Controls
|
||||
if (SystemData.ShelfCommFail == false)
|
||||
{
|
||||
// Alarm Display
|
||||
if (SystemData.StatusData.protection != 0)
|
||||
if (((ushort)SystemData.StatusData.errorCode & 0x4000) == 0x4000)
|
||||
{
|
||||
lbAlarm.Text = "TRIP (Anti-Theft)";
|
||||
lbAlarm.ForeColor = Color.Red;
|
||||
}
|
||||
else if (SystemData.StatusData.protection != 0)
|
||||
{
|
||||
lbAlarm.Text = "FAULT";
|
||||
lbAlarm.ForeColor = Color.Red;
|
||||
@@ -781,7 +778,12 @@ namespace LFP_Manager.Controls
|
||||
if (SystemData.ShelfCommFail == false)
|
||||
{
|
||||
// Alarm Display
|
||||
if (SystemData.StatusData.batteryStatus == 0)
|
||||
if (((ushort)SystemData.StatusData.errorCode & 0x4000) == 0x4000)
|
||||
{
|
||||
lbAlarm.Text = "TRIP (Anti-Theft)";
|
||||
lbAlarm.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
else if (SystemData.StatusData.batteryStatus == 0)
|
||||
{
|
||||
lbAlarm.Text = "NORMAL";
|
||||
lbAlarm.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
Reference in New Issue
Block a user