rename variables

so we have raw and cooked values separately
This commit is contained in:
IOhannes m zmölnig 2022-03-21 10:07:32 +01:00
parent 25186d308c
commit 178bb339bf

View file

@ -1533,9 +1533,9 @@ static void comport_parity(t_comport *x,t_floatarg f)
x->parity_bit = 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; if(x->comhandle == INVALID_HANDLE_VALUE)return;
@ -1543,7 +1543,7 @@ static void comport_stopbit(t_comport *x, t_floatarg f)
{ {
#ifdef _WIN32 #ifdef _WIN32
pd_error(x,"[comport] ** ERROR ** could not set stopbits of device %s to %g\n", 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 #else
pd_error(x,"[comport] ** ERROR ** could not set extra stopbit of device %s\n", pd_error(x,"[comport] ** ERROR ** could not set extra stopbit of device %s\n",
x->serial_device->s_name); x->serial_device->s_name);
@ -1553,12 +1553,12 @@ static void comport_stopbit(t_comport *x, t_floatarg f)
else comport_verbose else comport_verbose
#ifdef _WIN32 #ifdef _WIN32
("[comport] set stopbits of %s to %g\n", ("[comport] set stopbits of %s to %g\n",
&x->serial_device->s_name[4], f); &x->serial_device->s_name[4], stop);
#else #else
("[comport] set extra stopbit of %s to %g\n", ("[comport] set extra stopbit of %s to %g\n",
x->serial_device->s_name, f); x->serial_device->s_name, stop);
#endif #endif
x->stop_bits = f; x->stop_bits = stop;
} }
static void comport_rtscts(t_comport *x,t_floatarg f) static void comport_rtscts(t_comport *x,t_floatarg f)