Allow for display use by master on NRF52 on Android

This commit is contained in:
jacob.eva 2024-09-04 11:54:32 +01:00
parent d64064691a
commit 9d744e2317
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E
1 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ class KISS():
PLATFORM_AVR = 0x90 PLATFORM_AVR = 0x90
PLATFORM_ESP32 = 0x80 PLATFORM_ESP32 = 0x80
PLATFORM_NRF52 = 0x70
@staticmethod @staticmethod
def escape(data): def escape(data):
@ -595,7 +596,7 @@ class RNodeInterface(Interface):
if not self.detected: if not self.detected:
raise IOError("Could not detect device") raise IOError("Could not detect device")
else: else:
if self.platform == KISS.PLATFORM_ESP32: if self.platform == KISS.PLATFORM_ESP32 or self.platform == KISS.PLATFORM_NRF52:
self.display = True self.display = True
if not self.firmware_ok: if not self.firmware_ok: