removed serial checks

This commit is contained in:
Nick Leeman 2021-04-14 14:38:24 +02:00
parent 80396408f9
commit 0f26c86e0c
2 changed files with 1 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "SimpleSerialProtocol",
"version": "1.6.0",
"version": "1.7.0",
"description": "Easy-to-use serial protocol system for arduino type devices.",
"keywords": "Serial, Connectivity, USB, Simple",
"repository":

View File

@ -55,26 +55,20 @@ void SerialConnection::init(int serialIndex, unsigned long serialBaud) {
serialRefrence = &Serial;
}
#ifdef Serial1
else if (serialIndex == 1) {
Serial1.begin(serialBaud);
serialRefrence = &Serial1;
}
#endif
#ifdef Serial2
else if (serialIndex == 2) {
Serial2.begin(serialBaud);
serialRefrence = &Serial2;
}
#endif
#ifdef Serial3
else if (serialIndex == 3) {
Serial3.begin(serialBaud);
serialRefrence = &Serial3;
}
#endif
};
char* SerialConnection::handle() {