New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LEVEL_USB_AF and LEVEL_USB_AF_INPUT #1402
Labels
Milestone
Comments
TS_590S/SG complete |
When building Hamlib this morning in JTSDK, I got the following error:
CC ts590.lo
../../../src/rigs/kenwood/ts590.c: In function 'ts590_set_ext_level':
../../../src/rigs/kenwood/ts590.c:1278:5: warning: overflow in conversion from 'long long unsigned int' to 'token_t' {aka 'long int'} changes value from '2251799813685248' to '0' [-Woverflow]
1278 | case RIG_LEVEL_USB_AF_INPUT: // this one expect 0-1.0 levels
| ^~~~
../../../src/rigs/kenwood/ts590.c:1305:5: warning: overflow in conversion from 'long long unsigned int' to 'token_t' {aka 'long int'} changes value from '1125899906842624' to '0' [-Woverflow]
1305 | case RIG_LEVEL_USB_AF:
| ^~~~
../../../src/rigs/kenwood/ts590.c:1305:5: error: duplicate case value
../../../src/rigs/kenwood/ts590.c:1278:5: note: previously used here
1278 | case RIG_LEVEL_USB_AF_INPUT: // this one expect 0-1.0 levels
| ^~~~
make[1]: *** [Makefile:568: ts590.lo] Error 1
make[1]: Leaving directory '/home/charlesrogers/src/hamlib/build/rigs/kenwood'
make: *** [Makefile:635: all-recursive] Error 1
CLEAR SOURCE then CLOSE and RESTART MSYS2 IF YOU INTEND TO BUILD STATIC LIBRARIES
And Raspberry Pi Bullseye:
CC ts590.lo
ts590.c: In function 'ts590_set_ext_level':
ts590.c:1278:5: warning: overflow in conversion from 'long long unsigned int' to 'token_t' {aka 'long int'} changes value from '2251799813685248' to '0' [-Woverflow]
1278 | case RIG_LEVEL_USB_AF_INPUT: // this one expect 0-1.0 levels
| ^~~~
ts590.c:1305:5: warning: overflow in conversion from 'long long unsigned int' to 'token_t' {aka 'long int'} changes value from '1125899906842624' to '0' [-Woverflow]
1305 | case RIG_LEVEL_USB_AF:
| ^~~~
ts590.c:1305:5: error: duplicate case value
ts590.c:1278:5: note: previously used here
1278 | case RIG_LEVEL_USB_AF_INPUT: // this one expect 0-1.0 levels
| ^~~~
make[1]: *** [Makefile:566: ts590.lo] Error 1
make[1]: Leaving directory '/home/pi/Downloads/Hamlib-master/rigs/kenwood'
make: *** [Makefile:634: all-recursive] Error 1
***@***.***:~/Downloads/Hamlib-master $
Surprisingly, it built without errors on Mac Sonoma.
… On Oct 17, 2023, at 11:18 PM, Michael Black ***@***.***> wrote:
Add LEVEL_USB_AF_INPUT and make equivalent to TOK_LEVEL__USB_AUDIO_INPUT for backwards compatbility
Make LEVEL_USB_AF equivalent to TOK_LEVEL_USB_AUDIO_OUTPUT
—
Reply to this email directly, view it on GitHub <#1402>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6DY3MBMWSBHWCUEG5Y2KGTX75DBZAVCNFSM6AAAAAA6EZUPEGVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DQNZRGA2TKNI>.
You are receiving this because you are subscribed to this thread.
|
mdblack98
added a commit
that referenced
this issue
Oct 20, 2023
mdblack98
added a commit
that referenced
this issue
Oct 20, 2023
Now builds OK for KO3F |
mdblack98
added a commit
that referenced
this issue
Oct 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add LEVEL_USB_AF_INPUT and make equivalent to TOK_LEVEL__USB_AUDIO_INPUT for backwards compatbility
Make LEVEL_USB_AF equivalent to TOK_LEVEL_USB_AUDIO_OUTPUT
The text was updated successfully, but these errors were encountered: