-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/warning reduction #172
Conversation
8311d63
to
d6d5db2
Compare
src/core/CoolBoardSensors.cpp
Outdated
// Make sure sensors had enough time to turn on. | ||
// BME280 requires 2ms to start up. | ||
delay(1000); | ||
DEBUG_VAR("BME280 status after begin is:", envSensorStatus); | ||
DEBUG_VAR("BME280 status after begin is:", this->envSensor.begin()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I don't think you should call begin()
twice, sorry... What was the warning here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is a warning when you compile in -e prod,
he say envSensorStatus is a unused variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we can't merge that and we need to find another solution to fix this. Isn't there a sensor.getStatus()
method available on the BME class ?
src/extras/CoolAdafruit_CCS811.cpp
Outdated
degrees; there is an offset: 0 maps to -25�C. The default value is | ||
25�C = 0x64, 0x00. As an example 23.5% temperature would be | ||
degrees; there is an offset: 0 maps to -25�C. The default value is | ||
25�C = 0x64, 0x00. As an example 23.5% temperature would be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmmm those characters are weird ! Are they really responsible for warnings ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not, i don't know from where is coming this.
src/extras/CoolAdafruit_CCS811.cpp
Outdated
@@ -86,8 +86,8 @@ void Adafruit_CCS811::setEnvironmentalData(uint8_t humidity, double temperature) | |||
humidity would be 0x61, 0x00.*/ | |||
|
|||
/* Temperature is stored as an unsigned 16 bits integer in 1/512 | |||
degrees; there is an offset: 0 maps to -25�C. The default value is | |||
25�C = 0x64, 0x00. As an example 23.5% temperature would be | |||
degrees; there is an offset: 0 maps to -25�C. The default value is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
special character
24fb711
to
0e34425
Compare
@@ -658,7 +658,7 @@ void CoolBoard::updateFirmware(String firmwareVersion, String firmwareUrl, | |||
delete this->coolWifi; | |||
INFO_LOG("Starting firmware update..."); | |||
t_httpUpdate_return ret = | |||
ESPhttpUpdate.update(firmwareUrl, "", firmwareUrlFingerprint, true); | |||
ESPhttpUpdate.update(firmwareUrl, "", firmwareUrlFingerprint); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it changes ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true is a boolean to indicate if need to reboot or not after the ota update, is true for default
src/core/CoolBoardSensors.cpp
Outdated
// Make sure sensors had enough time to turn on. | ||
// BME280 requires 2ms to start up. | ||
delay(1000); | ||
DEBUG_VAR("BME280 status after begin is:", envSensorStatus); | ||
DEBUG_VAR("BME280 status after begin is:", this->envSensor.begin()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we can't merge that and we need to find another solution to fix this. Isn't there a sensor.getStatus()
method available on the BME class ?
#include "CoolSDS011.h" | ||
#include "SHT1x.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change the order ?
0e34425
to
9ae9c11
Compare
9ae9c11
to
dae7581
Compare
No description provided.