Skip to content

Commit

Permalink
Fix compile error if no USE_LIGHT
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Apr 3, 2020
1 parent 49febe4 commit c066b0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasmota/xsns_15_mhz19.ino
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ void MhzEverySecond(void)
mhz_type = (s) ? 1 : 2;
if (MhzCheckAndApplyFilter(ppm, s)) {
mhz_retry = MHZ19_RETRY_COUNT;
#ifdef USE_LIGHT
LightSetSignal(CO2_LOW, CO2_HIGH, mhz_last_ppm);
#endif // USE_LIGHT

if (0 == s || 64 == s) { // Reading is stable.
if (mhz_abc_must_apply) {
Expand Down
2 changes: 2 additions & 0 deletions tasmota/xsns_17_senseair.ino
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ void Senseair250ms(void) // Every 250 mSec
break;
case 2: // 0x03 (3) READ_CO2 - fe 04 02 06 2c af 59
senseair_co2 = value;
#ifdef USE_LIGHT
LightSetSignal(CO2_LOW, CO2_HIGH, senseair_co2);
#endif // USE_LIGHT
break;
case 3: // 0x04 (4) READ_TEMPERATURE - S8: fe 84 02 f2 f1 - Illegal Data Address
senseair_temperature = ConvertTemp((float)value / 100);
Expand Down
2 changes: 2 additions & 0 deletions tasmota/xsns_38_az7798.ino
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ void AzEverySecond(void)
}
response_substr[j] = 0; // add null terminator
az_co2 = atoi((char*)response_substr);
#ifdef USE_LIGHT
LightSetSignal(CO2_LOW, CO2_HIGH, az_co2);
#endif // USE_LIGHT
i += 3; // advance to second delimiter
if(az_response[i] != ':') {
AddLog_P(LOG_LEVEL_DEBUG, PSTR(D_LOG_DEBUG "AZ7798 error second delimiter"));
Expand Down

0 comments on commit c066b0c

Please sign in to comment.