Skip to content

Commit

Permalink
IOR_CHT8305_DAT fix publish channels
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jan 10, 2023
1 parent ec1a054 commit 39d611e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/new_pins.c
Expand Up @@ -1111,6 +1111,7 @@ bool CHANNEL_HasRoleThatShouldBePublished(int ch) {
if (role == IOR_Relay || role == IOR_Relay_n
|| role == IOR_LED || role == IOR_LED_n
|| role == IOR_ADC
|| role == IOR_CHT8305_DAT
|| role == IOR_DigitalInput || role == IOR_DigitalInput_n
|| IS_PIN_DHT_ROLE(role)
|| role == IOR_DigitalInput_NoPup || role == IOR_DigitalInput_NoPup_n) {
Expand All @@ -1121,6 +1122,10 @@ bool CHANNEL_HasRoleThatShouldBePublished(int ch) {
if (IS_PIN_DHT_ROLE(role)) {
return true;
}
// CHT8305 uses secondary channel for humidity
if (role == IOR_CHT8305_DAT) {
return true;
}
}
}
return false;
Expand Down

0 comments on commit 39d611e

Please sign in to comment.