From f24b288de39dcf45da2471b0edd1262b126a5c1c Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 29 Mar 2026 01:36:06 -0400 Subject: [PATCH] fix: add modem type and channel diagnostics to bridge startup --- inventoryWebBridge.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inventoryWebBridge.lua b/inventoryWebBridge.lua index 49b8ccf..0af3308 100644 --- a/inventoryWebBridge.lua +++ b/inventoryWebBridge.lua @@ -406,7 +406,10 @@ local function main() if modem then WebBridge.openChannels(modem, { 'inventory.broadcast', 'inventory.bridge' }) - print("[OK] Modem: " .. modemName) + local modemType = modem.isWireless and (modem.isWireless() and "wireless" or "wired") or "unknown" + print(string.format("[OK] Modem: %s (%s)", modemName, modemType)) + print(string.format("[OK] TX ch %d, listen ch %d/%d", + ORDER_CHANNEL, BROADCAST_CHANNEL, BRIDGE_REPLY_CHANNEL)) else print("[WARN] No modem found! Bridge needs a modem.") print(" Attach a modem and restart.")