Skip to content

Commit ca8cfde

Browse files
committed
[Ronald] bugfix logging
1 parent 34a7bbc commit ca8cfde

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/ota_updater.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ def using_network(ssid='WiFi-2.4-62A1', password='internetisvaniedereen'):
2727

2828
def apply_pending_updates_if_available(self):
2929
if 'next' in os.listdir(self.module):
30-
print('Pending update found: ', self.get_version(self.modulepath('next')))
30+
pending_update_version = self.get_version(self.modulepath('next'))
31+
print('Pending update found: ', pending_update_version)
3132
self.rmtree(self.modulepath(self.main_dir))
3233
os.rename(self.modulepath('next'), self.modulepath(self.main_dir))
33-
print('Update applied (', self.get_version(self.modulepath('next')), '), ready to rock and roll')
34+
print('Update applied (', pending_update_version, '), ready to rock and roll')
3435

3536
def download_updates_if_available(self):
3637
current_version = self.get_version(self.modulepath(self.main_dir))

0 commit comments

Comments
 (0)