Fix ble event error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user