|
|
@ -114,10 +114,6 @@ export default function Measure() { |
|
|
|
const onStartClick = () => { |
|
|
|
setshowCalibration(false) |
|
|
|
dispatch(updateMeasureData([])) |
|
|
|
if (contextState.device.power < 20) { |
|
|
|
Toast.show("电量低于20%,请充电后测量"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!contextState.device.connected) { |
|
|
|
Dialog.alert({ |
|
|
|
content: '蓝牙未连接,请先连接蓝牙', |
|
|
@ -145,6 +141,10 @@ export default function Measure() { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
// if (contextState.device.power < 20) {
|
|
|
|
// Toast.show("电量低于20%,请充电后测量");
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
Bridge.startMeasure().then((res) => { |
|
|
|
if (res.success) { |
|
|
|
dispatch(updateTaskState('START_RECORD_SIG')); |
|
|
|