Skip to content

Commit

Permalink
Added a small error check when syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
sunflowr committed Nov 20, 2019
1 parent 31b203f commit 582c283
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/DeviceInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export default {
(data[i++] << 16) |
(data[i++] << 24)) >>>
0; // UInt32
if(ver.magic != 0xac1dca78){
this.receiveStatus = "Unrecognized device data, this is not a RE-CPU your talking to.";
return;
}
ver.hwid =
(data[i++] |
(data[i++] << 8) |
Expand Down

0 comments on commit 582c283

Please sign in to comment.