Fix sdm120/630 compile error

Fix sdm120/630 compile error when webserver is disabled (#2764)
This commit is contained in:
Theo Arends 2018-05-27 14:14:41 +02:00
parent b8edfddd7e
commit 1c96097c7a
2 changed files with 2 additions and 2 deletions

View File

@ -262,9 +262,9 @@ void SDM120Show(boolean json)
#ifdef USE_WEBSERVER
} else {
snprintf_P(mqtt_data, sizeof(mqtt_data), HTTP_SNS_SDM120_DATA, mqtt_data, voltage, current, active_power, apparent_power, reactive_power, power_factor, frequency, energy_total);
}
#endif // USE_WEBSERVER
}
}
/*********************************************************************************************\
* Interface

View File

@ -317,9 +317,9 @@ void SDM630Show(boolean json)
active_power_l1, active_power_l2, active_power_l3,
reactive_power_l1, reactive_power_l2, reactive_power_l3,
power_factor_l1, power_factor_l2, power_factor_l3, energy_total);
}
#endif // USE_WEBSERVER
}
}
/*********************************************************************************************\
* Interface