From 178bb339bf373d4cbea97f4af13f0b4e89d87060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 21 Mar 2022 10:07:32 +0100 Subject: [PATCH] rename variables so we have raw and cooked values separately --- comport.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/comport.c b/comport.c index 65d0a45..5ae4cd3 100644 --- a/comport.c +++ b/comport.c @@ -1533,9 +1533,9 @@ static void comport_parity(t_comport *x,t_floatarg f) x->parity_bit = f; } -static void comport_stopbit(t_comport *x, t_floatarg f) +static void comport_stopbit(t_comport *x, t_floatarg fstop) { - f = set_stopflag(x, f); + t_float stop = set_stopflag(x, fstop); if(x->comhandle == INVALID_HANDLE_VALUE)return; @@ -1543,7 +1543,7 @@ static void comport_stopbit(t_comport *x, t_floatarg f) { #ifdef _WIN32 pd_error(x,"[comport] ** ERROR ** could not set stopbits of device %s to %g\n", - &x->serial_device->s_name[4], f); + &x->serial_device->s_name[4], stop); #else pd_error(x,"[comport] ** ERROR ** could not set extra stopbit of device %s\n", x->serial_device->s_name); @@ -1553,12 +1553,12 @@ static void comport_stopbit(t_comport *x, t_floatarg f) else comport_verbose #ifdef _WIN32 ("[comport] set stopbits of %s to %g\n", - &x->serial_device->s_name[4], f); + &x->serial_device->s_name[4], stop); #else ("[comport] set extra stopbit of %s to %g\n", - x->serial_device->s_name, f); + x->serial_device->s_name, stop); #endif - x->stop_bits = f; + x->stop_bits = stop; } static void comport_rtscts(t_comport *x,t_floatarg f)