소스 검색

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

Co-authored-by: あく <alleteam@gmail.com>
Lesha Lomalkin 4 년 전
부모
커밋
d9d33a0213
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      scripts/otp.py

+ 2 - 2
scripts/otp.py

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