From e13185dcc397297442e815cb4372537c86e89afa Mon Sep 17 00:00:00 2001 From: Andreas Auras Date: Fri, 23 Sep 2011 22:16:43 +0200 Subject: Setup program version 4: Exchange pyusb with extracted modules from python-libusb1 project. Add generating .exe file for win32 platform with py2exe. Controller test application version 2: Port application to win32 platform. Added win32 binary distribution generation. Update README and HISTORY. --- df10ch_setup_pkg/firmware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'df10ch_setup_pkg/firmware.py') diff --git a/df10ch_setup_pkg/firmware.py b/df10ch_setup_pkg/firmware.py index 24dc577..94c66cb 100644 --- a/df10ch_setup_pkg/firmware.py +++ b/df10ch_setup_pkg/firmware.py @@ -20,7 +20,6 @@ # This file is part of the DF10CH setup program # -import array import fileinput import string @@ -37,7 +36,7 @@ class FlashPage: def __init__(self, addr, pageSize): self.pageSize = pageSize self.baseAddr = addr - addr % pageSize - self.data = array.array('B', [ 0xFF ] * pageSize) + self.data = bytearray([ 0xFF ] * pageSize) def insert(self, addr, value): self.data[addr % self.pageSize] = value -- cgit v1.2.3