Skip to content

Commit

Permalink
Fix Chef AirQualitySensor temperature range (project-chip#35742)
Browse files Browse the repository at this point in the history
The original was setting maxMeasuredValue/maxMeasuredValue as 0x800
which doesn't make any senses. So it is modified to the reasonable
values from -5000 (-50 celsius degrees) ~ 7000 (70 celsius degrees)
  • Loading branch information
erwinpan1 committed Sep 25, 2024
1 parent dea6c23 commit cf0bc86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2382,9 +2382,9 @@ endpoint 1 {
}

server cluster TemperatureMeasurement {
persist attribute measuredValue default = 0x800;
persist attribute minMeasuredValue default = 0x800;
persist attribute maxMeasuredValue default = 0x800;
persist attribute measuredValue default = 0;
persist attribute minMeasuredValue default = -5000;
persist attribute maxMeasuredValue default = 7500;
persist attribute tolerance default = 0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3257,7 +3257,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x800",
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3273,7 +3273,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x800",
"defaultValue": "-5000",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3289,7 +3289,7 @@
"storageOption": "NVM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x800",
"defaultValue": "7500",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down

0 comments on commit cf0bc86

Please sign in to comment.