mirror of https://github.com/ARMmbed/mbed-os.git
provide default initialization of some local variables in serial_api.c:serial_format()
parent
aae8513739
commit
9413ed9163
|
@ -260,6 +260,7 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
|
||||||
case ParityForced1: parity_enable = 1; parity_select = 2; break;
|
case ParityForced1: parity_enable = 1; parity_select = 2; break;
|
||||||
case ParityForced0: parity_enable = 1; parity_select = 3; break;
|
case ParityForced0: parity_enable = 1; parity_select = 3; break;
|
||||||
default:
|
default:
|
||||||
|
parity_enable = 0, parity_select = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue