更新老模块没有卫星信号,导致没有定位的问题

This commit is contained in:
磷叶 2025-06-07 22:02:49 +08:00
parent 17eaba3846
commit 1753133e4f

View File

@ -186,11 +186,13 @@ public class DeviceUtil {
/** /**
* 卫星信号弱 * 卫星信号弱
* 仅卫星信号不为空才判断若为空则不判断是否弱信号
* 因为老模块没有卫星信号
* @param s * @param s
* @return * @return
*/ */
public static boolean isLowSatelliteSignal(Integer s) { public static boolean isLowSatelliteSignal(Integer s) {
return s == null || s <= 5; return s != null && s <= 5;
} }
/** /**