widhid: debug comments
parent
d2a989170c
commit
2fc4fdedac
|
|
@ -118,18 +118,20 @@
|
||||||
redraw();
|
redraw();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//const DEBUG = true;
|
||||||
const sendHid = (code: number) => {
|
const sendHid = (code: number) => {
|
||||||
|
//if(DEBUG) return;
|
||||||
NRF.sendHIDReport(
|
NRF.sendHIDReport(
|
||||||
[1, code],
|
[1, code],
|
||||||
() => NRF.sendHIDReport([1, 0]),
|
() => NRF.sendHIDReport([1, 0]),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const next = () => sendHid(0x01);
|
const next = () => /*DEBUG ? console.log("next") : */ sendHid(0x01);
|
||||||
const prev = () => sendHid(0x02);
|
const prev = () => /*DEBUG ? console.log("prev") : */ sendHid(0x02);
|
||||||
const toggle = () => sendHid(0x10);
|
const toggle = () => /*DEBUG ? console.log("toggle") : */ sendHid(0x10);
|
||||||
const up = () => sendHid(0x40);
|
const up = () => /*DEBUG ? console.log("up") : */ sendHid(0x40);
|
||||||
const down = () => sendHid(0x80);
|
const down = () => /*DEBUG ? console.log("down") : */ sendHid(0x80);
|
||||||
|
|
||||||
const suspendOthers = () => {
|
const suspendOthers = () => {
|
||||||
const swipeHandler = (Bangle as {swipeHandler?: () => void}).swipeHandler;
|
const swipeHandler = (Bangle as {swipeHandler?: () => void}).swipeHandler;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue