freemyipod r281 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r280‎ | r281 | r282 >
Date:02:51, 27 November 2010
Author:farthen
Status:new
Tags:
Comment:
emBIOS: embios.py: bugfix poweroff: do what is intended and do not reset
Modified paths:
  • /embios/trunk/tools/embios.py (modified) (history)

Diff [purge]

Index: embios/trunk/tools/embios.py
@@ -301,9 +301,9 @@
302302 which may take some time.
303303 """
304304 force = self._bool(force)
305 - if force: self.logger.info("Resetting forcefully...\n")
306 - else: self.logger.info("Resetting...\n")
307 - self.embios.reset(force)
 305+ if force: self.logger.info("Powering off forcefully...\n")
 306+ else: self.logger.info("Powering off...\n")
 307+ self.embios.poweroff(force)
308308
309309 @command
310310 def uploadfile(self, addr, filename):