|
@@ -431,7 +431,7 @@ public class InitActivity extends BaseActivity implements SerialPortUtil.ISerial
|
|
|
String newStr = str.substring(str.indexOf("$") + 1, str.indexOf("#"));
|
|
|
LogUtil.d("serialPortBedOnclickString", "newStr==" + newStr);
|
|
|
if (newStr.startsWith("V")) {
|
|
|
- Constants.MCU_VERSION_NUMBER = newStr.substring(str.indexOf(",") + 1, str.indexOf("F"));
|
|
|
+ Constants.MCU_VERSION_NUMBER = newStr.substring(newStr.indexOf(",") + 1, 16);
|
|
|
LogUtil.d("serialPortBedOnclick", "Constants.MCU_VERSION_NUMBER==" + Constants.MCU_VERSION_NUMBER);
|
|
|
}
|
|
|
} catch (Exception e) {
|