diff --git a/static/js/BLE.js b/static/js/BLE.js index dda6be5..c73c104 100644 --- a/static/js/BLE.js +++ b/static/js/BLE.js @@ -12,8 +12,8 @@ async function connect(props) { return char; } -function parseCSC({ value }) { - const flags = value.getUint8(0, true); +function parseCSC(e) { + const flags = e.target.value.getUint8(0, true); const hasWheel = !!(flags & 0x01); const hasCrank = !!(flags & 0x02); let index = 1;