Commit 3bc5de16 authored by Markéta Jedličková's avatar Markéta Jedličková
Browse files

Init altitude and humidity added

parent d88e8125
......@@ -34,6 +34,8 @@ void OcsStorage::Update(message income, uint8_t screenNum)
ocsDesign.drawPress(income.pressure);
ocsDesign.drawMinPress(income.pressure);
ocsDesign.drawMaxPress(income.pressure);
ocsDesign.drawAltitude(income.altitude);
ocsDesign.drawHumidity(income.humidity);
minData.temperature = income.temperature;
maxData.temperature = income.temperature;
minData.pressure = income.pressure;
......@@ -48,13 +50,17 @@ void OcsStorage::Update(message income, uint8_t screenNum)
ocsDesign.drawPress(income.pressure);
ocsDesign.drawMinPress(minData.pressure);
ocsDesign.drawMaxPress(maxData.pressure);
ocsDesign.drawAltitude(income.altitude);
ocsDesign.drawHumidity(income.humidity);
isTransition = false;
}
checkTemperature(income.temperature);
checkPressure(income.pressure);
checkAltitude(income.altitude);
checkHumidity(income.humidity_bme280);
else
{
checkTemperature(income.temperature);
checkPressure(income.pressure);
checkAltitude(income.altitude);
checkHumidity(income.humidity_bme280);
}
ocsDesign.drawMessageId(income.messageId);
}
else if(screenNum == 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment