diff --git a/Arduino/CanGrow/include/CanGrow_LittleFS.h b/Arduino/CanGrow/include/CanGrow_LittleFS.h index 7cfa30b..bbc51a6 100644 --- a/Arduino/CanGrow/include/CanGrow_LittleFS.h +++ b/Arduino/CanGrow/include/CanGrow_LittleFS.h @@ -291,8 +291,9 @@ bool SaveConfig(bool writeToSerial = false) { objSystem["output_gpio_invert"][i] = config.system.output_gpio_invert[i]; objSystem["output_gpio_pwm"][i] = config.system.output_gpio_pwm[i]; objSystem["output_i2c"][i] = config.system.output_i2c[i]; + for(byte j=0; j < 4 ; j++) { - objSystem["output_ip"][j] = config.system.output_ip[j]; + objSystem["output_ip"][i][j] = config.system.output_ip[i][j]; } objSystem["output_ip_path"][i] = config.system.output_ip_path[i]; objSystem["output_enabled"][i] = config.system.output_enabled[i];