mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
feature: show missing modem on OLED
This commit is contained in:
parent
e152c48f99
commit
23b1384e1c
1 changed files with 5 additions and 1 deletions
|
@ -757,6 +757,7 @@ class pyPlcHomeplug():
|
||||||
self.localModemFound = 0
|
self.localModemFound = 0
|
||||||
self.isDeveloperLocalKey = 0
|
self.isDeveloperLocalKey = 0
|
||||||
self.nEvseModemMissingCounter = 0
|
self.nEvseModemMissingCounter = 0
|
||||||
|
self.showStatus("Modem search", "pevState")
|
||||||
# First action: find the connected homeplug modems, by sending a GET_KEY
|
# First action: find the connected homeplug modems, by sending a GET_KEY
|
||||||
self.composeGetKey()
|
self.composeGetKey()
|
||||||
self.addToTrace("[PEVSLAC] searching for modems, transmitting GET_KEY.REQ...")
|
self.addToTrace("[PEVSLAC] searching for modems, transmitting GET_KEY.REQ...")
|
||||||
|
@ -808,6 +809,9 @@ class pyPlcHomeplug():
|
||||||
self.enterState(STATE_READY_FOR_SLAC)
|
self.enterState(STATE_READY_FOR_SLAC)
|
||||||
return
|
return
|
||||||
if (self.pevSequenceState==STATE_READY_FOR_SLAC):
|
if (self.pevSequenceState==STATE_READY_FOR_SLAC):
|
||||||
|
if (self.numberOfFoundModems==0):
|
||||||
|
self.showStatus("NoModem, simuSLAC", "pevState")
|
||||||
|
else:
|
||||||
self.showStatus("Starting SLAC", "pevState")
|
self.showStatus("Starting SLAC", "pevState")
|
||||||
self.addToTrace("[PEVSLAC] Sending SLAC_PARAM.REQ...")
|
self.addToTrace("[PEVSLAC] Sending SLAC_PARAM.REQ...")
|
||||||
self.composeSlacParamReq()
|
self.composeSlacParamReq()
|
||||||
|
|
Loading…
Reference in a new issue