diff --git a/RNS/Interfaces/Android/RNodeInterface.py b/RNS/Interfaces/Android/RNodeInterface.py index 293f9e0..d17b354 100644 --- a/RNS/Interfaces/Android/RNodeInterface.py +++ b/RNS/Interfaces/Android/RNodeInterface.py @@ -94,6 +94,7 @@ class KISS(): PLATFORM_AVR = 0x90 PLATFORM_ESP32 = 0x80 + PLATFORM_NRF52 = 0x70 @staticmethod def escape(data): @@ -660,7 +661,7 @@ class RNodeInterface(Interface): if not self.detected: raise IOError("Could not detect device") else: - if self.platform == KISS.PLATFORM_ESP32: + if self.platform == KISS.PLATFORM_ESP32 or self.platform == KISS.PLATFORM_NRF52: self.display = True if not self.firmware_ok: diff --git a/RNS/Interfaces/RNodeInterface.py b/RNS/Interfaces/RNodeInterface.py index 40ae5bb..99cf8d8 100644 --- a/RNS/Interfaces/RNodeInterface.py +++ b/RNS/Interfaces/RNodeInterface.py @@ -83,6 +83,7 @@ class KISS(): PLATFORM_AVR = 0x90 PLATFORM_ESP32 = 0x80 + PLATFORM_NRF52 = 0x70 @staticmethod def escape(data): @@ -328,7 +329,7 @@ class RNodeInterface(Interface): RNS.log("Could not detect device for "+str(self), RNS.LOG_ERROR) self.serial.close() else: - if self.platform == KISS.PLATFORM_ESP32: + if self.platform == KISS.PLATFORM_ESP32 or self.platform == KISS.PLATFORM_NRF52: self.display = True RNS.log("Serial port "+self.port+" is now open") diff --git a/RNS/Interfaces/RNodeMultiInterface.py b/RNS/Interfaces/RNodeMultiInterface.py index f48d670..292e2fe 100644 --- a/RNS/Interfaces/RNodeMultiInterface.py +++ b/RNS/Interfaces/RNodeMultiInterface.py @@ -106,6 +106,7 @@ class KISS(): PLATFORM_AVR = 0x90 PLATFORM_ESP32 = 0x80 + PLATFORM_NRF52 = 0x70 SX127X = 0x00 SX1276 = 0x01 @@ -297,7 +298,7 @@ class RNodeMultiInterface(Interface): RNS.log("Could not detect device for "+str(self), RNS.LOG_ERROR) self.serial.close() else: - if self.platform == KISS.PLATFORM_ESP32: + if self.platform == KISS.PLATFORM_ESP32 or self.platform == KISS.PLATFORM_NRF52: self.display = True RNS.log("Serial port "+self.port+" is now open")