X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/3935cf9ac06b7bc328ee3d942edb5f60130d5b74..4b7e63289506c9a6883d606c74eb0119046e50d1:/Arduino/libraries/Firmata/utility/SerialFirmata.cpp?ds=sidebyside diff --git a/Arduino/libraries/Firmata/utility/SerialFirmata.cpp b/Arduino/libraries/Firmata/utility/SerialFirmata.cpp index b934f16..8b703e1 100644 --- a/Arduino/libraries/Firmata/utility/SerialFirmata.cpp +++ b/Arduino/libraries/Firmata/utility/SerialFirmata.cpp @@ -252,6 +252,18 @@ Stream* SerialFirmata::getPortFromId(byte portId) case HW_SERIAL3: return &Serial3; #endif +#if defined(PIN_SERIAL4_RX) + case HW_SERIAL4: + return &Serial4; +#endif +#if defined(PIN_SERIAL5_RX) + case HW_SERIAL5: + return &Serial5; +#endif +#if defined(PIN_SERIAL6_RX) + case HW_SERIAL6: + return &Serial6; +#endif #if defined(SoftwareSerial_h) case SW_SERIAL0: if (swSerial0 != NULL) {