otp.py: fix return code mistype (#784)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Lesha Lomalkin 2021-10-25 18:19:48 +03:00 committed by GitHub
parent 9d952ed855
commit d9d33a0213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,10 +170,10 @@ class Main(App):
os.remove(filename) os.remove(filename)
except Exception as e: except Exception as e:
self.logger.exception(e) self.logger.exception(e)
return 0
return 1 return 1
return 0
def flash_second(self): def flash_second(self):
self.logger.info(f"Flashing second block of OTP") self.logger.info(f"Flashing second block of OTP")