mirror of
https://github.com/MultiMote/niimbluelib.git
synced 2025-03-17 03:51:01 +03:00
Fix Abstraction.getPrinterModel
This commit is contained in:
parent
53a9b5152a
commit
7deb70d55e
@ -157,7 +157,7 @@ export class Abstraction {
|
|||||||
Validators.u8ArrayLengthAtLeast(packet.data, 1);
|
Validators.u8ArrayLengthAtLeast(packet.data, 1);
|
||||||
|
|
||||||
if (packet.data.length === 1) {
|
if (packet.data.length === 1) {
|
||||||
return Utils.bytesToI16(packet.data) << 8;
|
return packet.data[0] << 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
Validators.u8ArrayLengthEquals(packet.data, 2);
|
Validators.u8ArrayLengthEquals(packet.data, 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user