X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETAVR.py;fp=client%2FGoodFETAVR.py;h=30354cd35dd24faf6efa84fd86cf5f31400c6ca7;hp=f8189bf57cb3aa09c75fb10944f54fab31af3dd0;hb=fa0f91bb0af90149c2502c3e2c0ad06516d28a49;hpb=8e3df202724ba1830230e9352207231303cba6f3 diff --git a/client/GoodFETAVR.py b/client/GoodFETAVR.py index f8189bf..30354cd 100644 --- a/client/GoodFETAVR.py +++ b/client/GoodFETAVR.py @@ -116,7 +116,8 @@ class GoodFETAVR(GoodFET): """Read the target's lockbits.""" self.writecmd(self.AVRAPP,0x92,1,[bits]); return self.lockbits(); - + def lock(self): + self.setlockbits(0xFC); def eeprompeek(self, adr): """Read a byte of the target's EEPROM.""" self.writecmd(self.AVRAPP,0x81 ,2,