Remove unnecessary uBit.serial.baud() calls

The serial baud rate is set duing construction of the uBit object.  We
don't need to do it again, and especially with fixed values that can't
be overridden.
master
Robert May 2015-11-18 22:50:19 +00:00
parent d5dfdbcc5e
commit 6c330079b1
2 changed files with 0 additions and 4 deletions

View File

@ -93,9 +93,6 @@ MicroBit::MicroBit() :
*/
void MicroBit::init()
{
// Set the default baud rate for the serial port.`
uBit.serial.baud(115200);
//add the display to the systemComponent array
addSystemComponent(&uBit.display);

View File

@ -14,7 +14,6 @@ int main()
#if CONFIG_ENABLED(MICROBIT_DBG)
// For diagnostics. Gives time to open the console window. :-)
uBit.serial.baud(115200);
for (int i=3; i>0; i--)
{
uBit.serial.printf("=== SUPERMAIN: Starting in %d ===\n", i);