changes to an unused function
This commit is contained in:
parent
1fc36d8790
commit
5b6359ce9e
@ -41,22 +41,10 @@ return fd;
|
||||
this will disconnect the line.
|
||||
*/
|
||||
|
||||
int bauds_str_to_B(char *strb, int unused)
|
||||
int bauds_to_B(int bauds)
|
||||
{
|
||||
long value;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "--> %s ( '%s' 0x%x )\n", __func__, strb, unused);
|
||||
#endif
|
||||
|
||||
if (1 != sscanf(strb, "%ld", &value)) {
|
||||
return B0;
|
||||
}
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, " computed baudrate = %ld\n", value);
|
||||
#endif
|
||||
|
||||
switch (value) {
|
||||
switch (bauds) {
|
||||
case 50: return B50;
|
||||
case 75: return B75;
|
||||
case 110: return B110;
|
||||
|
@ -4,4 +4,5 @@
|
||||
*/
|
||||
|
||||
int open_serial(char *dev, int bauds, int unused);
|
||||
int bauds_str_to_B(char *strb, int unused);
|
||||
|
||||
int bauds_to_B(int bauds);
|
||||
|
Loading…
Reference in New Issue
Block a user