]> AND Private Git Repository - Cipher_code.git/blobdiff - Arduino/libraries/Firmata/utility/SerialFirmata.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
aze
[Cipher_code.git] / Arduino / libraries / Firmata / utility / SerialFirmata.cpp
index b934f1666d9262f5662e24c06a7bd5d6891e561c..8b703e13f6c24ff21f9e2d0d448f1305849d2db5 100644 (file)
@@ -252,6 +252,18 @@ Stream* SerialFirmata::getPortFromId(byte portId)
     case HW_SERIAL3:
       return &Serial3;
 #endif
     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) {
 #if defined(SoftwareSerial_h)
     case SW_SERIAL0:
       if (swSerial0 != NULL) {