20 lines
282 B
C++
20 lines
282 B
C++
|
#include "mcopy_serial.h"
|
||
|
|
||
|
void McopySerial::begin (int baudRate) {
|
||
|
baud = baudRate;
|
||
|
begin();
|
||
|
}
|
||
|
|
||
|
void McopySerial::begin () {
|
||
|
|
||
|
}
|
||
|
|
||
|
void McopySerial::debug (bool state) {
|
||
|
debugOn = state;
|
||
|
}
|
||
|
|
||
|
void McopySerial::log (String message) {
|
||
|
if (debugOn) {
|
||
|
Serial.println(message);
|
||
|
}
|
||
|
}
|