chore(config): merge userConfig with defaultConfig and add a lock (#164)

* chore(config): merge userConfig with defaultConfig and add a lock

* chore(config): remove lock for LoadConfig
This commit is contained in:
Aveline
2025-02-17 20:12:34 +01:00
committed by GitHub
parent cd333c4ebc
commit 69461140e3
5 changed files with 11 additions and 34 deletions

View File

@@ -311,7 +311,6 @@ func ensureBinaryUpdated(destPath string) error {
// Restore the HDMI EDID value from the config.
// Called after successful connection to jetkvm_native.
func restoreHdmiEdid() {
LoadConfig()
if config.EdidString != "" {
logger.Infof("Restoring HDMI EDID to %v", config.EdidString)
_, err := CallCtrlAction("set_edid", map[string]interface{}{"edid": config.EdidString})