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