@ray-js/lock-sdk 1.2.0-beta.22 → 1.2.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,10 +26,10 @@ export const isSupportBleControlForRuntime = (rt) => {
|
|
|
26
26
|
const bleControlDp = rt.config.idsByCode[dpCodes.bleControl];
|
|
27
27
|
if (bleControlDp) {
|
|
28
28
|
const reportTIme = devInfo?.dpsTime?.[bleControlDp];
|
|
29
|
-
const
|
|
29
|
+
const noReportTime = !reportTIme ||
|
|
30
30
|
Math.floor(Number(reportTIme) / 1000) <= devInfo.activeTime;
|
|
31
31
|
const bleVal = rt.cache.dpState[dpCodes.bleControl];
|
|
32
|
-
if (
|
|
32
|
+
if (noReportTime) {
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
35
|
return bleVal;
|