kopia lustrzana https://github.com/Hamlib/Hamlib
Fix segfault in icom.c when range_list is NULL
rodzic
3e34acc1e0
commit
5b1df09ad0
|
@ -8885,6 +8885,7 @@ int icom_power2mW(RIG *rig, unsigned int *mwpower, float power, freq_t freq,
|
|||
if (range_list == NULL)
|
||||
{
|
||||
*mwpower = power * 100000; // default to 100W if no range_list
|
||||
RETURNFUNC (RIG_OK);
|
||||
}
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: maxpower=%d\n", __func__, range_list->high_power);
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#define BACKEND_VER "20241025"
|
||||
#define BACKEND_VER "20241030"
|
||||
|
||||
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
|
||||
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)
|
||||
|
|
Ładowanie…
Reference in New Issue