File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libraries/Matter/examples/MatterTemperatureSensor Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ const char *password = "your-password"; // Change this to your WiFi password
3333
3434// Simulate a temperature sensor - add your prefered temperature sensor library code here
3535float getTemperature () {
36- static float CelciusTempHWSensor = -10.0 ;
36+ static float celciusTempHWSensor = -10.0 ;
3737
3838 // it will increase from -10C to 10C in 0.5C steps to simulate a temperature sensor
39- CelciusTempHWSensor = CelciusTempHWSensor + 0.5 ;
40- if (CelciusTempHWSensor > 10 ) {
41- CelciusTempHWSensor = -10 ;
39+ celciusTempHWSensor = celciusTempHWSensor + 0.5 ;
40+ if (celciusTempHWSensor > 10 ) {
41+ celciusTempHWSensor = -10 ;
4242 }
4343
44- return CelciusTempHWSensor ;
44+ return celciusTempHWSensor ;
4545}
4646
4747void setup () {
You can’t perform that action at this time.
0 commit comments