Skip to content

Commit

Permalink
Update version number, support rev 1.3 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
reilleya committed Apr 9, 2021
1 parent 1b30470 commit 8de2538
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class App(QApplication):

NAME = 'RMTS'
VERSION = (0, 3, 1)
VERSION = (0, 3, 2)

newConverter = pyqtSignal(object)
newFiringConfig = pyqtSignal(object)
Expand Down Expand Up @@ -98,3 +98,7 @@ def setupFileIO(self):
fileIO.registerMigration(FILE_TYPES.PREFERENCES, (0, 3, 0), (0, 3, 1), lambda data: data)
fileIO.registerMigration(FILE_TYPES.TRANSDUCERS, (0, 3, 0), (0, 3, 1), lambda data: data)
fileIO.registerMigration(FILE_TYPES.FIRING, (0, 3, 0), (0, 3, 1), lambda data: data)

fileIO.registerMigration(FILE_TYPES.PREFERENCES, (0, 3, 1), (0, 3, 2), lambda data: data)
fileIO.registerMigration(FILE_TYPES.TRANSDUCERS, (0, 3, 1), (0, 3, 2), lambda data: data)
fileIO.registerMigration(FILE_TYPES.FIRING, (0, 3, 1), (0, 3, 2), lambda data: data)
2 changes: 1 addition & 1 deletion lib/firmwareVersions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

ALLOWED_HARDWARE_REVISIONS = [2]
ALLOWED_HARDWARE_REVISIONS = [2, 3]
ALLOWED_FIRMWARE_VERSIONS = [5]

def checkVersionPacket(packet):
Expand Down
3 changes: 2 additions & 1 deletion lib/versions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
HARDWARE_REVISIONS = {
0: 'Revision 1.0',
1: 'Revision 1.1',
2: 'Revision 1.2'
2: 'Revision 1.2',
3: 'Revision 1.3'
}

def getHardwareRevisionString(versionNum):
Expand Down

0 comments on commit 8de2538

Please sign in to comment.