only: now `merged_calibrations.*` files are placed in `state` subfolder as well as `prev_calibrations.*` and `updated_calibrations.*` files

This commit is contained in:
kifir23917 2025-02-17 17:05:30 +03:00 committed by rusefillc
parent 0749e43f6f
commit c33e879159
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ public class CalibrationsHelper {
private static final String PREVIOUS_CALIBRATIONS_FILE_NAME = BinaryProtocolLocalCache.STATE_FOLDER + "prev_calibrations";
private static final String UPDATED_CALIBRATIONS_FILE_NAME = BinaryProtocolLocalCache.STATE_FOLDER + "updated_calibrations";
private static final String MERGED_CALIBRATIONS_FILE_NAME = BinaryProtocolLocalCache.STATE_FOLDER + "merged_calibrations";
public static boolean updateFirmwareAndRestorePreviousCalibrations(
final JComponent parent,
@ -78,7 +79,7 @@ public class CalibrationsHelper {
"Restore previous calibrations",
JOptionPane.YES_NO_OPTION
) == JOptionPane.YES_OPTION)) {
if (!backUpCalibrationsInfo(mergedCalibrations.get(), "merged_calibrations", callbacks)) {
if (!backUpCalibrationsInfo(mergedCalibrations.get(), MERGED_CALIBRATIONS_FILE_NAME, callbacks)) {
callbacks.logLine("Failed to back up merged calibrations...");
return false;
}