X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETAVR.py;h=ee5b1807c01b926bbb68aa27ca30bc1d62eac5c4;hp=2f06722601892e1157189b3e98c038b32884e9eb;hb=166ecd9b06d0fd98ad69379f5b0d91c755adff2b;hpb=eddb0eb08f187dc156a6cb51878104df67d97436 diff --git a/client/GoodFETAVR.py b/client/GoodFETAVR.py index 2f06722..ee5b180 100644 --- a/client/GoodFETAVR.py +++ b/client/GoodFETAVR.py @@ -74,6 +74,11 @@ class GoodFETAVR(GoodFET): """Read the target's lockbits.""" self.writecmd(self.AVRAPP,0x82,0,None); return ord(self.data[0]); + def setlockbits(self,bits=0x00): + """Read the target's lockbits.""" + self.writecmd(self.AVRAPP,0x92,1,[bits]); + return self.lockbits(); + def eeprompeek(self, adr): """Read a byte of the target's EEPROM.""" self.writecmd(self.AVRAPP,0x81 ,2,