From 902f7af64da7bd38bede3f81b2fdc119dae028fc Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 12 Oct 2022 15:14:42 +0200 Subject: [PATCH] Added platform check --- RNS/Interfaces/RNodeInterface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RNS/Interfaces/RNodeInterface.py b/RNS/Interfaces/RNodeInterface.py index 2ae7912..44053ae 100644 --- a/RNS/Interfaces/RNodeInterface.py +++ b/RNS/Interfaces/RNodeInterface.py @@ -103,6 +103,9 @@ class RNodeInterface(Interface): RECONNECT_WAIT = 5 def __init__(self, owner, name, port, frequency = None, bandwidth = None, txpower = None, sf = None, cr = None, flow_control = False, id_interval = None, id_callsign = None): + if RNS.vendor.platformutils.is_android(): + raise SystemError("Invlaid interface type. The Android-specific RNode interface must be used on Android") + import importlib if importlib.util.find_spec('serial') != None: import serial