From c2304f6d1ea55d20deaa28b30794ed05f8986d70 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Thu, 21 Jul 2022 15:43:04 +0200
Subject: [PATCH] Added the "HermesLite-II audio codec" state to the props
 file.

---
 radio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/radio.c b/radio.c
index 9ce3da5..90ea0c0 100644
--- a/radio.c
+++ b/radio.c
@@ -2112,6 +2112,8 @@ g_print("radioRestoreState: %s\n",property_path);
     if(value) atlas_mic_source=atoi(value);
     value=getProperty("atlas_janus");
     if(value) atlas_janus=atoi(value);
+    value=getProperty("hl2_audio_codec");
+    if(value) hl2_audio_codec=atoi(value);
     value=getProperty("tx_out_of_band");
     if(value) tx_out_of_band=atoi(value);
     value=getProperty("filter_board");
@@ -2483,6 +2485,8 @@ g_print("radioSaveState: %s\n",property_path);
     setProperty("atlas_mic_source",value);
     sprintf(value,"%d",atlas_janus);
     setProperty("atlas_janus",value);
+    sprintf(value,"%d",hl2_audio_codec);
+    setProperty("hl2_audio_codec",value);
     sprintf(value,"%d",filter_board);
     setProperty("filter_board",value);
     sprintf(value,"%d",tx_out_of_band);
-- 
2.45.2