From bf1e25d04c0e7d707f0360a33de286984cc6860a Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 24 Oct 2024 01:54:15 +0200 Subject: [PATCH] playing around, output_ip load/save was broken. fixed. --- Arduino/CanGrow/include/CanGrow_LittleFS.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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];