summaryrefslogtreecommitdiff
path: root/df10ch_setup_pkg/firmware.py
diff options
context:
space:
mode:
authorAndreas Auras <yak54@inkennet.de>2011-09-23 22:16:43 +0200
committerAndreas Auras <yak54@inkennet.de>2011-09-23 22:16:43 +0200
commite13185dcc397297442e815cb4372537c86e89afa (patch)
tree282e25b9d62d263280236993b655c0502d80c1b7 /df10ch_setup_pkg/firmware.py
parenta9fd3ff0b95b45ea419c701448270a061b28c570 (diff)
downloaddf10ch-atmolight-controller-e13185dcc397297442e815cb4372537c86e89afa.tar.gz
df10ch-atmolight-controller-e13185dcc397297442e815cb4372537c86e89afa.tar.bz2
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.
Diffstat (limited to 'df10ch_setup_pkg/firmware.py')
-rw-r--r--df10ch_setup_pkg/firmware.py3
1 files changed, 1 insertions, 2 deletions
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