mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
fix for 8 bits cmd IDs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1192 7ae35d74-ebe9-4afe-98af-79ac388436b8
This commit is contained in:
parent
c69f9b4168
commit
e13217367d
@ -5,7 +5,7 @@
|
||||
* It takes commands in interactive mode as well as
|
||||
* from command line options.
|
||||
*
|
||||
* $Id: rotctl.c,v 1.4 2002-09-06 10:43:59 fillods Exp $
|
||||
* $Id: rotctl.c,v 1.5 2002-09-24 21:45:37 fillods Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@ -172,7 +172,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
int interactive=1; /* if no cmd on command line, switch to interactive */
|
||||
int retcode; /* generic return code from functions */
|
||||
char cmd;
|
||||
unsigned char cmd;
|
||||
struct test_table *cmd_entry;
|
||||
|
||||
int verbose = 0;
|
||||
@ -305,7 +305,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
/* command by name */
|
||||
if (cmd == '\\') {
|
||||
char cmd_name[MAXNAMSIZ], *pcmd = cmd_name;
|
||||
unsigned char cmd_name[MAXNAMSIZ], *pcmd = cmd_name;
|
||||
int c_len = MAXNAMSIZ;
|
||||
|
||||
scanf("%c", pcmd);
|
||||
|
Loading…
Reference in New Issue
Block a user