#define NEW_DEVICE_HERMES2 2
#define NEW_DEVICE_ANGELIA 3
#define NEW_DEVICE_ORION 4
-#define NEW_DEVICE_ANAN_10E 5
+#define NEW_DEVICE_ORION2 5
#define NEW_DEVICE_HERMES_LITE 6
#define STATE_AVAILABLE 2
constant1=5.0;
constant2=0.108;
break;
- case NEW_DEVICE_ANAN_10E:
- constant1=3.3;
- constant2=0.09;
+ case NEW_DEVICE_ORION2:
+ constant1=5.0;
+ constant2=0.108;
break;
case NEW_DEVICE_HERMES_LITE:
constant1=3.3;
g_signal_connect(micboost_b,"toggled",G_CALLBACK(micboost_cb),NULL);
- if((protocol==NEW_PROTOCOL && device==NEW_DEVICE_ORION) || (protocol==ORIGINAL_PROTOCOL && device==DEVICE_ORION)) {
+ if((protocol==NEW_PROTOCOL && device==NEW_DEVICE_ORION) ||
+ (protocol==NEW_PROTOCOL && device==NEW_DEVICE_ORION2) ||
+ (protocol==ORIGINAL_PROTOCOL && device==DEVICE_ORION)) {
GtkWidget *ptt_ring_b=gtk_radio_button_new_with_label(NULL,"PTT On Ring, Mic and Bias on Tip");
//gtk_widget_override_font(ptt_ring_b, pango_font_description_from_string("Arial 18"));
case NEW_DEVICE_ORION:
strcpy(discovered[devices].name,"Orion");
break;
- case NEW_DEVICE_ANAN_10E:
- strcpy(discovered[devices].name,"Anan-10E");
+ case NEW_DEVICE_ORION2:
+ strcpy(discovered[devices].name,"Orion2");
break;
case NEW_DEVICE_HERMES_LITE:
strcpy(discovered[devices].name,"Hermes Lite");
if(value) OCfull_tune_time=atoi(value);
value=getProperty("OCmemory_tune_time");
if(value) OCmemory_tune_time=atoi(value);
+ value=getProperty("attenuation");
+ if(value) attenuation=atoi(value);
bandRestoreState();
sem_post(&property_sem);
setProperty("OCfull_tune_time",value);
sprintf(value,"%d",OCmemory_tune_time);
setProperty("OCmemory_tune_time",value);
+ sprintf(value,"%d",attenuation);
+ setProperty("attenuation",value);
bandSaveState();