Noise filter

Add noise filter to all limit switches
This commit is contained in:
Marc-Antoine Lafreniere
2019-04-07 19:59:01 -04:00
parent 1de6f3efcb
commit 6425c14330
2 changed files with 176 additions and 35 deletions

View File

@@ -73,7 +73,7 @@ def sendWithAck(gcodeCommand, timeoutCom):
elif received.startswith('-2'):
raise RuntimeError('Device error, please reset the device')
elif received.startswith('-1'):
raise RuntimeError('Command error')
raise RuntimeError('Command error : ' + gcodeCommand)
else:
commandTimeout += 1
if commandTimeout > timeoutCom * 10: