problem with setting UART format

03 Dec 2012

hi,

I'm trying to set up a second stop bit in my uart connection, but i get a strange error.

my code:

........

int main() {
    char temp=0;
    device.format(8,Serial::none,2);
    device.baud(1200);
               
    while (1) {............

I get the error:

"Class "mbed::Serial" has no member "none" (E135)

Is there something obvious I'm missing?

03 Dec 2012

Hey,

The last mbed changes replace the parity option by ParityNone instead of Serial::none. The documentation however is outdated (also for the attach function).

04 Dec 2012

thanks Erik! works like a charm now