fixed
This commit is contained in:
parent
efb6c5a756
commit
17df4fe014
|
@ -181,7 +181,7 @@ class RemoteRequestLogic extends BaseLogic
|
|||
if (!empty($ambientTemperatureDevice)) {
|
||||
$rangeData = self::requestRangeMonitorData($ambientTemperatureDevice);
|
||||
if (!empty($rangeData)) {
|
||||
$ambientTemperatureDevice['RangeMonitorData'] = $rangeData[1];
|
||||
$ambientTemperatureDevice['RangeMonitorData'] = $rangeData[0];
|
||||
} else {
|
||||
$ambientTemperatureDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ class RemoteRequestLogic extends BaseLogic
|
|||
if (!empty($ambientHumidityDevice)) {
|
||||
$rangeData = self::requestRangeMonitorData($ambientHumidityDevice);
|
||||
if (!empty($rangeData)) {
|
||||
$ambientHumidityDevice['RangeMonitorData'] = $rangeData[0];
|
||||
$ambientHumidityDevice['RangeMonitorData'] = $rangeData[1];
|
||||
} else {
|
||||
$ambientHumidityDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue