You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is not fixed properly. Argument config was changed to uint16_t as shown below
void Uart::begin(unsigned long baudrate, uint16_t config)
however the other Uart::begin calls it with a cast to uint8_t
void Uart::begin(unsigned long baudrate)
{
begin(baudrate, (uint8_t)SERIAL_8N1);
}
So far, nobody noticed, probably because nobody uses other than 8 data bits. In that case you won't notice the bug.
Wouldn't it be better to drop this latter function and to add a default value for config in the other begin()?
AR_INTERNAL was removed in arduino#74. Because of this, non-SAMD51 boards fail because AR_INTERNAL isn't defined.
This also define AR_INTERNAL_2V23, which is also used for non-SAMD51
boards.
These constants for the number of data bits are all 16 bit values.
But Uart::begin takes an 8 bit value
void begin(unsigned long baudrate, uint8_t config);
This makes it impossible to change the number of bits.
The text was updated successfully, but these errors were encountered: