Pebble: set HW revision to "dvt" for basalt emulator

This commit is contained in:
Andreas Shimokawa 2015-08-17 13:19:15 +02:00
parent c8c882c3d1
commit e704357728
1 changed files with 2 additions and 0 deletions

View File

@ -1066,6 +1066,8 @@ public class PebbleProtocol extends GBDeviceProtocol {
Byte hwRev = buf.get(); Byte hwRev = buf.get();
if (hwRev > 0 && hwRev < hwRevisions.length) { if (hwRev > 0 && hwRev < hwRevisions.length) {
versionCmd.hwVersion = hwRevisions[hwRev]; versionCmd.hwVersion = hwRevisions[hwRev];
} else if (hwRev == -3) { // basalt emulator
versionCmd.hwVersion = "dvt";
} }
devEvt = versionCmd; devEvt = versionCmd;
break; break;