]> Pileus Git - ~andy/csm213a-hw/blobdiff - yue/main.cpp
Switch to 921600 baud rate
[~andy/csm213a-hw] / yue / main.cpp
index 20186e1f54595b01466b25c9cfc8c271b3719d27..5b82803062bc8f9865ece13ebef0cbabd8b78540 100644 (file)
@@ -45,6 +45,7 @@ int main() {
     // Interruption Declarations
     clock1.attach(&clock1_interrupt, TIME_ACCURACY);    // maximun accuracy be 0.1s
     serial.attach(&serialRx_interrupt, Serial::RxIrq);  // receive interrupt for serialS
+    serial.baud(921600);
     magSensor.begin();
 
     serial.printf("\r\n============= Start of the program ============\r\n");