mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 13:38:02 +08:00
转换温度
This commit is contained in:
@@ -142,7 +142,9 @@ public class YKCUtils {
|
|||||||
public static String transitionTemperature(byte[] bytes) {
|
public static String transitionTemperature(byte[] bytes) {
|
||||||
String s = BytesUtil.binary(bytes, 10);
|
String s = BytesUtil.binary(bytes, 10);
|
||||||
int i = Integer.parseInt(s);
|
int i = Integer.parseInt(s);
|
||||||
i = i - 50;
|
if (i > 0) {
|
||||||
return String.valueOf(i);
|
return String.valueOf(i - 50);
|
||||||
|
}
|
||||||
|
return "一";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user