fix: add modem type and channel diagnostics to bridge startup

This commit is contained in:
MayaTheShy
2026-03-29 01:36:06 -04:00
parent 3c40cf9ef4
commit f24b288de3

View File

@@ -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.")