Skip to content

Commit

Permalink
Updated warning messages to reflect rule #89
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpittaway committed Jan 25, 2021
1 parent 94630be commit 7abd4d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ESPController/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,13 @@ void ProcessRules()
rules.SetWarning(InternalWarningCode::ModuleInconsistantBypassTemperature);
}

if (cmi[cellid].CodeVersionNumber != cmi[0].CodeVersionNumber)
if (cmi[0].settingsCached && cmi[cellid].CodeVersionNumber != cmi[0].CodeVersionNumber)
{
//Do all the modules have the same version of code as module zero?
rules.SetWarning(InternalWarningCode::ModuleInconsistantCodeVersion);
}

if (cmi[cellid].BoardVersionNumber != cmi[0].BoardVersionNumber)
if (cmi[0].settingsCached && cmi[cellid].BoardVersionNumber != cmi[0].BoardVersionNumber)
{
//Do all the modules have the same hardware revision?
rules.SetWarning(InternalWarningCode::ModuleInconsistantBoardRevision);
Expand Down
4 changes: 2 additions & 2 deletions ESPController/web_src/default.htm
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@

<div id='genericwarning' class='warning'>Controller warning <span id="genericwarningcode"></span></div>

<div id='warning1' class='warning'>Warning: Modules are configured with different bypass voltages</div>
<div id='warning2' class='warning'>Warning: Modules are configured with different bypass temperatures</div>
<div id='warning1' class='warning'>Warning: Module bypass voltage is different to global setting</div>
<div id='warning2' class='warning'>Warning: Module bypass temperature is different to global setting</div>
<div id='warning3' class='warning'>Warning: Modules have mixed versions of code, may cause instability</div>
<div id='warning4' class='warning'>Warning: Modules have mixed versions of hardware/boards</div>

Expand Down

0 comments on commit 7abd4d2

Please sign in to comment.