mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-10 01:05:42 +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.isDeveloperLocalKey = 0
|
||||
self.nEvseModemMissingCounter = 0
|
||||
self.showStatus("Modem search", "pevState")
|
||||
# First action: find the connected homeplug modems, by sending a GET_KEY
|
||||
self.composeGetKey()
|
||||
self.addToTrace("[PEVSLAC] searching for modems, transmitting GET_KEY.REQ...")
|
||||
|
@ -808,7 +809,10 @@ class pyPlcHomeplug():
|
|||
self.enterState(STATE_READY_FOR_SLAC)
|
||||
return
|
||||
if (self.pevSequenceState==STATE_READY_FOR_SLAC):
|
||||
self.showStatus("Starting SLAC", "pevState")
|
||||
if (self.numberOfFoundModems==0):
|
||||
self.showStatus("NoModem, simuSLAC", "pevState")
|
||||
else:
|
||||
self.showStatus("Starting SLAC", "pevState")
|
||||
self.addToTrace("[PEVSLAC] Sending SLAC_PARAM.REQ...")
|
||||
self.composeSlacParamReq()
|
||||
self.transmit(self.mytransmitbuffer)
|
||||
|
|
Loading…
Reference in a new issue