From 8f4527c1b95987c9adfcada0a93e1a74620db4b4 Mon Sep 17 00:00:00 2001 From: remittor Date: Tue, 26 Sep 2023 15:25:31 +0300 Subject: [PATCH] Fix stupid bugs --- envbuffer.py | 2 +- install_fw.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/envbuffer.py b/envbuffer.py index b706207..fe2caec 100644 --- a/envbuffer.py +++ b/envbuffer.py @@ -74,7 +74,7 @@ class EnvBuffer(): return dict def set_env(self, key, value): - var[key] = value + self.var[key] = value def pack(self, bufsize, crc_prefix = None, encoding = None): crc_prefix = crc_prefix if crc_prefix is not None else self.crc_prefix diff --git a/install_fw.py b/install_fw.py index 1c8d63c..39f66ae 100644 --- a/install_fw.py +++ b/install_fw.py @@ -610,7 +610,7 @@ if rootfs.cmd: if img_write: gw.run_cmd(rootfs.cmd, timeout = 60) -if img_write: +if not img_write: die('TEST is over') print("The firmware has been successfully flashed!")