-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add support for SGP40 sensor #16341
Add support for SGP40 sensor #16341
Conversation
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.
Well done, thanks
tools/decode-status.py
Outdated
@@ -236,7 +236,7 @@ | |||
"USE_BH1750","USE_VEML6070","USE_ADS1115_I2CDEV","USE_ADS1115", | |||
"USE_INA219","USE_SHT3X","USE_MHZ19","USE_TSL2561", | |||
"USE_SENSEAIR","USE_PMS5003","USE_MGS","USE_NOVA_SDS", | |||
"USE_SGP30","USE_SR04","USE_SDM120","USE_SI1145", | |||
"USE_SGP30","USE_SGP40","USE_SR04","USE_SDM120","USE_SI1145", | |||
"USE_SDM630","USE_LM75AD","USE_APDS9960","USE_TM1638" |
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.
You're not supposed to insert ANYTHING here which does not relate to the correct location in file support_features.ino
.
In your case you'll need to move the entry down into the new array following USE_DISPLAY_TM1621_SONOFF
@@ -825,6 +825,9 @@ void ResponseAppendFeatures(void) | |||
|
|||
static uint32_t feature9 = 0x00000000; | |||
if (!feature9) { // Only fill this once | |||
#if defined(USE_I2C) && defined(USE_SGP40) | |||
feature9 |= 0x00000001; // xsns_98_sgp40.ino | |||
#endif | |||
// feature9 |= 0x00000001; |
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.
Remove the above line as you start using it.
Remove used line from support_features.ino
Description:
Related issue (if applicable): fixes #
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass