X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETMSP430.py;h=83154c08cf38e853c98006dbce4876003dcfea4c;hp=22b7ee82245bbc02d32284eee14d2b1a9cbfe1b3;hb=32f20cd81c67f9cfb9bd11b9b62942ff60d9b2f4;hpb=4b2f28239ea1c0f76117e813fc8838f8a368d2bf;ds=sidebyside diff --git a/client/GoodFETMSP430.py b/client/GoodFETMSP430.py index 22b7ee8..83154c0 100644 --- a/client/GoodFETMSP430.py +++ b/client/GoodFETMSP430.py @@ -41,10 +41,10 @@ class GoodFETMSP430(GoodFET): self.writecmd(self.MSP430APP,0x02,2,self.data); return ord(self.data[0])+(ord(self.data[1])<<8); def MSP430poke(self,adr,val): - """Read the contents of memory at an address.""" + """Write the contents of memory at an address.""" self.data=[adr&0xff, (adr&0xff00)>>8, val&0xff, (val&0xff00)>>8]; self.writecmd(self.MSP430APP,0x03,4,self.data); - return;# ord(self.data[0])+(ord(self.data[1])<<8); + return ord(self.data[0])+(ord(self.data[1])<<8); def MSP430start(self): """Start debugging.""" self.writecmd(self.MSP430APP,0x20,0,self.data);