Skip to content

Commit

Permalink
update and fix wording function
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryBearzz committed Aug 6, 2023
1 parent 1423144 commit ed3e1f7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void loop()
float LightMeter = extLightMeter.readLight();
float Sht20Temp = extSHT20.readTemperature();
float Sht20Humid = extSHT20.readHumidity();
float SoilMoisture = extSoilMoisture.readMoisetureLevel();
float SoilMoisture = extSoilMoisture.readMoistureLevel();
float BoardTemp = magel.builtInSensor.readTemperature();
float BoardHumid = magel.builtInSensor.readHumidity();
if (magel.gps.available())
Expand Down
2 changes: 1 addition & 1 deletion examples/Soil_moisture/Soil_moisture.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ void setup()
void loop()
{
Serial.print("Soil Moisture Level: ");
Serial.println(extSoilMoisture.readMoisetureLevel(), 1);
Serial.println(extSoilMoisture.readMoistureLevel(), 1);
delay(2000);
}
2 changes: 1 addition & 1 deletion keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ getDateTimeString KEYWORD2
extConfig KEYWORD2
calibrateSensor KEYWORD2
readRawMillivolt KEYWORD2
readMoisetureLevel KEYWORD2
readMoistureLevel KEYWORD2
readTemperature KEYWORD2
readHumidity KEYWORD2
heatSensor KEYWORD2
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/SOIL_MOISTURE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ float SOIL_MOISTURE::readRawMillivolt()
return (float)analogRead(this->_analogPin);
}

float SOIL_MOISTURE::readMoisetureLevel()
float SOIL_MOISTURE::readMoistureLevel()
{
int rawAnalog = readRawMillivolt();
float moistureLevel = map(rawAnalog, this->_dry_millivolt, this->_wet_millivolt, 0, 100) / 10.0;
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/SOIL_MOISTURE.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SOIL_MOISTURE
void begin(AIN anlogINPUT);
void calibrateSensor(int WET_MILLIVOLT, int DRY_MILLIVOLT);
float readRawMillivolt();
float readMoisetureLevel();
float readMoistureLevel();
};
extern SOIL_MOISTURE extSoilMoisture;

Expand Down

0 comments on commit ed3e1f7

Please sign in to comment.