From bc09294b829c24c245903da5364d8e9e7b0fc901 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Wed, 21 Apr 2021 21:53:31 +0200 Subject: [PATCH] Search for unsupported command fix --- pyren/mod_elm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyren/mod_elm.py b/pyren/mod_elm.py index 14a33dd..ea6ac0f 100644 --- a/pyren/mod_elm.py +++ b/pyren/mod_elm.py @@ -2079,8 +2079,8 @@ class ELM: paramToSend += dataids.keys()[lvl] cmd = '22' + paramToSend resp = self.send_cmd(cmd) - if any(s in resp for s in ['?', 'NR']): - return False + if any(s in resp for s in ['?', 'NR']): + return False self.performanceModeLevel = level return True