increase max dallas sensors from 10 to 20 - #157

This commit is contained in:
Proddy
2021-10-14 10:09:52 +02:00
parent c029cf79f7
commit 235f789228
4 changed files with 10 additions and 10 deletions

View File

@@ -718,7 +718,7 @@ void Console::load_system_commands(unsigned int context) {
[](Shell & shell, const std::vector<std::string> & arguments) {
if (arguments.size() == 0) {
EMSESP::webSettingsService.read([&](WebSettings & settings) {
for (uint8_t i = 0; i < NUM_SENSOR_NAMES; i++) {
for (uint8_t i = 0; i < MAX_NUM_SENSOR_NAMES; i++) {
if (!settings.sensor[i].id.isEmpty()) {
shell.print(settings.sensor[i].id);
shell.print(" : ");