summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Štemberk <stemberk@gmail.com>2014-01-05 13:39:28 +0100
committerMichael Buesch <m@bues.ch>2014-01-05 13:39:28 +0100
commit860164b6f155c98ac3462ea9c3048dfea557e468 (patch)
treeb7ede4736570d43e63eae5d6e9655015e29fc66a
parent570abe82a4d0cb43505bca9dee46ce5120352baa (diff)
downloadtoprammer-860164b6f155c98ac3462ea9c3048dfea557e468.tar.xz
toprammer-860164b6f155c98ac3462ea9c3048dfea557e468.zip
Microchip: Fix OSCCAL
This patch was contributed by Pavel Štemberk <stemberk@gmail.com> Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--libtoprammer/chips/microchip8/microchip8_common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtoprammer/chips/microchip8/microchip8_common.py b/libtoprammer/chips/microchip8/microchip8_common.py
index f510328..b5bf172 100644
--- a/libtoprammer/chips/microchip8/microchip8_common.py
+++ b/libtoprammer/chips/microchip8/microchip8_common.py
@@ -91,6 +91,7 @@ class Chip_Microchip8_common(Chip):
def __erase(self, keepConfigWord=False, keepUserIDLocation=False, keepOSCCAL=False, keepEEPROM=False):
OSCCAL = 0xfff
+ self.exitPM()
self.enterPM()
if(keepOSCCAL):
self.progressMeterInit("Reading OSCCAL)", 0)
bues.ch cgit interface