@@ -35,7 +35,7 @@ decode_results results;
3535void setup ()
3636{
3737 M5StackChan.begin ();
38- USBSerial .begin (115200 );
38+ Serial .begin (115200 );
3939
4040 // Perform a low level sanity checks that the compiler performs bit field
4141 // packing as we expect and Endianness is as we expect.
@@ -55,23 +55,23 @@ void loop()
5555 if (irrecv.decode (&results)) {
5656 // Display a crude timestamp.
5757 uint32_t now = millis ();
58- USBSerial .printf (D_STR_TIMESTAMP " : %06u.%03u\n " , now / 1000 , now % 1000 );
58+ Serial .printf (D_STR_TIMESTAMP " : %06u.%03u\n " , now / 1000 , now % 1000 );
5959 // Check if we got an IR message that was to big for our capture buffer.
60- if (results.overflow ) USBSerial .printf (D_WARN_BUFFERFULL " \n " , kCaptureBufferSize );
60+ if (results.overflow ) Serial .printf (D_WARN_BUFFERFULL " \n " , kCaptureBufferSize );
6161 // Display the library version the message was captured with.
62- USBSerial .println (D_STR_LIBRARY " : v" _IRREMOTEESP8266_VERSION_STR " \n " );
62+ Serial .println (D_STR_LIBRARY " : v" _IRREMOTEESP8266_VERSION_STR " \n " );
6363 // Display the tolerance percentage if it has been change from the default.
64- if (kTolerancePercentage != kTolerance ) USBSerial .printf (D_STR_TOLERANCE " : %d%%\n " , kTolerancePercentage );
64+ if (kTolerancePercentage != kTolerance ) Serial .printf (D_STR_TOLERANCE " : %d%%\n " , kTolerancePercentage );
6565 // Display the basic output of what we found.
66- USBSerial .print (resultToHumanReadableBasic (&results));
66+ Serial .print (resultToHumanReadableBasic (&results));
6767 // Display any extra A/C info if we have it.
6868 String description = IRAcUtils::resultAcToString (&results);
69- if (description.length ()) USBSerial .println (D_STR_MESGDESC " : " + description);
69+ if (description.length ()) Serial .println (D_STR_MESGDESC " : " + description);
7070 yield (); // Feed the WDT as the text output can take a while to print.
7171 // Output the results as source code
72- USBSerial .println (resultToSourceCode (&results));
73- USBSerial .println (); // Blank line between entries
74- yield (); // Feed the WDT (again)
72+ Serial .println (resultToSourceCode (&results));
73+ Serial .println (); // Blank line between entries
74+ yield (); // Feed the WDT (again)
7575 }
7676 delay (50 );
7777}
0 commit comments