Fix compile warnings in ts890s.c for MacOS

This commit is contained in:
Mike Black W9MDB 2024-09-10 22:41:31 -05:00
parent 1f3360e11d
commit 5ea17ccd21
2 changed files with 14 additions and 0 deletions

View File

@ -54,6 +54,10 @@
[LVL_VOXGAIN] = { .min = { .f = .0 }, .max = { .f = 1 }, .step = { .f = 1.0f/100.0f } },
[LVL_ANTIVOX] = { .min = { .f = .0 }, .max = { .f = 1 }, .step = { .f = 1.0f/100.0f } },
[LVL_ALC] = { .min = { .f = .0 }, .max = { .f = 1 }, .step = { .f = 1.0f/100.0f } },
#if !defined(NO_LVL_USB_AF)
[LVL_USB_AF] = { .min = { .f = 0 }, .max = { .f = 1.0 }, .step = { .f = 1.0f/10.0f } },
#endif
#if !defined(NO_LVL_USB_AF_INPUT)
[LVL_USB_AF_INPUT] = { .min = { .f = 0 }, .max = { .f = 1.0 }, .step = { .f = 1.0f/10.0f } },
#endif

View File

@ -650,7 +650,17 @@ struct rig_caps ts890s_caps =
.get_level = kenwood_ts890_get_level,
.level_gran =
{
#define NO_LVL_ATT
#define NO_LVL_CWPITCH
#define NO_LVL_SQL
#define NO_LVL_USB_AF
#define NO_LVL_USB_AF_INPUT
#include "level_gran_kenwood.h"
#undef NO_LVL_ATT
#undef NO_LVL_CWPITCH
#undef NO_LVL_SQL
#undef NO_LVL_USB_AF
#undef NO_LVL_USB_AF_INPUT
[LVL_ATT] = { .min = { .i = 0 }, .max = { .i = 18 }, .step = { .i = 6 } },
[LVL_CWPITCH] = { .min = { .i = 300 }, .max = { .i = 1100 }, .step = { .i = 5 } },
[LVL_SQL] = { .min = { .f = 0 }, .max = { .f = 1.0f }, .step = { .f = 1.0 / 255.0 } },