m1n1.fw.isp: Fix message validity check

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2023-09-24 16:21:04 +09:00 committed by Hector Martin
parent 6aca0608d8
commit 204f6b8189

View file

@ -106,7 +106,7 @@ class ISPChannelMessage:
return s
def valid(self): # rough check used for dumps
return (self.arg0 != 0x1) and (self.arg0 != 0x3) and (not (all(arg == 0x0 for arg in self.args)))
return not (self.arg0 & 0x1)
class ISPChannel:
"""