Browse Source

Fixing accidental assignment to class field during boolean algebra

master
Mobius K 3 years ago
parent
commit
d4223546d9
  1. 2
      src/scripts/bluetooth.js

2
src/scripts/bluetooth.js

@ -29,7 +29,7 @@ function copyBluetoothClassField() {
function updateBluetoothMinorDeviceFields() {
// Determine the ID of the selected major device
const majorDevice = bluetoothClass &= 0x1F00;
const majorDevice = bluetoothClass & 0x1F00;
const majorDeviceRadio = document.querySelector(`input[type='radio'][name='majorDevice'][value='${majorDevice}']`);
const majorDeviceId = majorDeviceRadio.id.replace("majorDevice", "");

Loading…
Cancel
Save