sensebox / React-Ardublockly

This repository contains the new senseBox learn- and programming environment powered by google Blockly and React
Apache License 2.0
2 stars 7 forks source link

Typo in humidity sensor function generator #179

Closed xEmkayx closed 2 years ago

xEmkayx commented 2 years ago

The file sensebox-sensors.js contains a typo, which leads to the program not compiling properly.

In line 443, instead of

 code = "airSensor.getHumidity()";

it says code = "airSensor.getHumiditiy()"; Note the extra 'i' in Humidity.

This leads to following error:

In function 'void loop()':
webserver_1:86:23: error: 'class SCD30' has no member named 'getHumiditiy'; did you mean 'getHumidity'?
      String(airSensor.getHumiditiy()) + String("%"))))))));
                       ^~~~~~~~~~~~
                       getHumidity
mariopesch commented 2 years ago

Thanks @xEmkayx for reporting! I just fixed it