X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fserial.c;h=27244da34b6513c6e0cc4b9461fd4d417b3f652b;hb=2a8f2d41adcd0aa9e498c4eea2a5f82263039e5c;hp=136edcad92a2f0253ce855e8d6451bd3f00248ac;hpb=cbc1413f31f3946ce79da5540cfbeace8924c9d1;p=libsigrok.git diff --git a/src/serial.c b/src/serial.c index 136edcad..27244da3 100644 --- a/src/serial.c +++ b/src/serial.c @@ -20,6 +20,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -519,13 +520,13 @@ SR_PRIV int serial_set_paramstr(struct sr_serial_dev_inst *serial, if ((mstr = g_match_info_fetch(match, 3))) { switch (mstr[0]) { case 'n': - parity = SERIAL_PARITY_NONE; + parity = SP_PARITY_NONE; break; case 'e': - parity = SERIAL_PARITY_EVEN; + parity = SP_PARITY_EVEN; break; case 'o': - parity = SERIAL_PARITY_ODD; + parity = SP_PARITY_ODD; break; } }