From 8eceb282c662756a7b7aeb841a3acfacd9417d4a Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 19 Oct 2021 11:44:19 +0200 Subject: [PATCH] Consider calibration values to be correct if loaded from YAML. --- radio/src/storage/sdcard_yaml.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio/src/storage/sdcard_yaml.cpp b/radio/src/storage/sdcard_yaml.cpp index 8283bacb4..6e79e153c 100644 --- a/radio/src/storage/sdcard_yaml.cpp +++ b/radio/src/storage/sdcard_yaml.cpp @@ -124,7 +124,12 @@ const char * loadRadioSettings() #endif } - return loadRadioSettingsYaml(); + const char* error = loadRadioSettingsYaml(); + if (!error) { + g_eeGeneral.chkSum = evalChkSum(); + } + + return error; } struct yaml_writer_ctx {