Simplified speed tuples
This commit is contained in:
parent
7b4c91ea07
commit
f0e28de114
@ -104,7 +104,7 @@ export class PUPHub extends LPF2Hub {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let data = null;
|
let data = null;
|
||||||
if (portObj.id === "AB") {
|
if (portObj.id === "AB") {
|
||||||
data = Buffer.from([0x81, portObj.value, 0x11, 0x02, 0x00]);
|
data = Buffer.from([0x81, portObj.value, 0x11, 0x02, 0x00, 0x00]);
|
||||||
} else {
|
} else {
|
||||||
data = Buffer.from([0x81, portObj.value, 0x11, 0x60, 0x00, 0x00, 0x00, 0x00]);
|
data = Buffer.from([0x81, portObj.value, 0x11, 0x60, 0x00, 0x00, 0x00, 0x00]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user