Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
removing references to solar scramble in limit switches (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencechen14 authored and ewc340 committed Apr 4, 2019
1 parent 0668de0 commit a550004
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions dawn/renderer/reducers/peripherals.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,8 @@ const peripherals = (state = initialPeripheralState, action) => {
nextState.runtimeVersion = `${version.major}.${version.minor}.${version.patch}`;
} else {
keys.push(peripheral.uid);
switch (peripheral.uid) {
case '0': {
peripheral.device_name = 'Blackout';
peripheral.device_type = PeripheralTypes.GameValues;
break;
}
case '1': {
peripheral.device_name = 'Supercharge';
peripheral.device_type = PeripheralTypes.GameValues;
break;
}
case '2': {
peripheral.device_name = 'Solar Inverter';
peripheral.device_type = PeripheralTypes.GameValues;
break;
}
default: {
if (peripheral.uid in nextPeripherals) {
peripheral.device_name = nextPeripherals[peripheral.uid].device_name;
}
}
if (peripheral.uid in nextPeripherals) {
peripheral.device_name = nextPeripherals[peripheral.uid].device_name;
}
nextPeripherals[peripheral.uid] = peripheral;
}
Expand Down

0 comments on commit a550004

Please sign in to comment.