From e6bb5518626868f207cdfb29f0a69a8af3eb559e Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Thu, 11 Jun 2026 09:40:49 +0200 Subject: [PATCH] bugfix --- sim/ePowerSwitch8_sim.py | 2 +- startioc.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sim/ePowerSwitch8_sim.py b/sim/ePowerSwitch8_sim.py index b9cf0bd..31f16b1 100644 --- a/sim/ePowerSwitch8_sim.py +++ b/sim/ePowerSwitch8_sim.py @@ -37,7 +37,7 @@ def readAscii(connexion_client : socket): if len(message) != 58 : ## At index 22, we have the ASCII outlet number outlet_index = ord(message[22]) - ord('1') - if (outlet_index < 1 or outlet_index > 8): ## if garbage, we return earlier + if (outlet_index < 0 or outlet_index > 7): ## if garbage, we return earlier return match message[25]: diff --git a/startioc.sh b/startioc.sh index af1cf8e..e619651 100755 --- a/startioc.sh +++ b/startioc.sh @@ -13,8 +13,6 @@ export EPOWERSWITCH_SOCKET_NUMBER=8 export HOST_NAME="localhost" export HOST_PORT="55555" -whereis procServ - /usr/local/bin/procServ -L - -f -i ^D^C 20001 "${PWD}/st.cmd"