From 82827ed921f8cf9d9707aa5ef9d29090d130fdf1 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sat, 25 Mar 2023 00:23:40 +0100 Subject: [PATCH] added isWireless function to Modem --- src/kernel/peripherals/Modem.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kernel/peripherals/Modem.hx b/src/kernel/peripherals/Modem.hx index 15d637c..5a0f7a5 100644 --- a/src/kernel/peripherals/Modem.hx +++ b/src/kernel/peripherals/Modem.hx @@ -34,6 +34,10 @@ class Modem implements INetworkInterface implements IPeripheral { }); } + public function isWireless():Bool { + return native.isWireless(); + } + public function listen(chan:Int) { native.open(chan); }