update 电单车

This commit is contained in:
Guoqs
2024-09-12 16:27:39 +08:00
parent 180b0020db
commit a12efdaa9b
3 changed files with 31 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ public class EBikeMessageCmd06 extends AbsEBikeMessage {
this.avgPower = BytesUtil.bytesToIntLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length)) * 0.1 + "";
length = 16;
this.orderCode = BytesUtil.bcd2StrLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length));
this.orderCode = BytesUtil.bcd2Str(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length));
length = 2;
this.peakPower = BytesUtil.bytesToIntLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length)) + "";