kopia lustrzana https://github.com/Hamlib/Hamlib
Fix rig state pointers in winradio
rodzic
fe08947700
commit
d4bb78d751
|
@ -242,7 +242,7 @@ int g3_open(RIG *rig)
|
||||||
struct g3_priv_data *priv = (struct g3_priv_data *)rig->state.priv;
|
struct g3_priv_data *priv = (struct g3_priv_data *)rig->state.priv;
|
||||||
int device_num;
|
int device_num;
|
||||||
|
|
||||||
device_num = atoi(rig->state.rigport.pathname);
|
device_num = atoi(rig->state.rigport->pathname);
|
||||||
|
|
||||||
/* Open Winradio receiver handle */
|
/* Open Winradio receiver handle */
|
||||||
priv->hRadio = priv->OpenRadioDevice(device_num);
|
priv->hRadio = priv->OpenRadioDevice(device_num);
|
||||||
|
|
|
@ -243,7 +243,7 @@ int g3_open(RIG *rig)
|
||||||
struct g3_priv_data *priv = (struct g3_priv_data *)rig->state.priv;
|
struct g3_priv_data *priv = (struct g3_priv_data *)rig->state.priv;
|
||||||
int device_num;
|
int device_num;
|
||||||
|
|
||||||
device_num = atoi(rig->state.rigport.pathname);
|
device_num = atoi(rig->state.rigport->pathname);
|
||||||
|
|
||||||
/* Open Winradio receiver handle */
|
/* Open Winradio receiver handle */
|
||||||
priv->hRadio = priv->OpenRadioDevice(device_num);
|
priv->hRadio = priv->OpenRadioDevice(device_num);
|
||||||
|
|
|
@ -380,7 +380,7 @@ int g313_open(RIG *rig)
|
||||||
int Count;
|
int Count;
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
device_num = atoi(rig->state.rigport.pathname);
|
device_num = atoi(rig->state.rigport->pathname);
|
||||||
|
|
||||||
Count = priv->waveOutGetNumDevs();
|
Count = priv->waveOutGetNumDevs();
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue