Treat empty modem status after restart as idle

This commit is contained in:
alberto committed 2026-10-14 20:16:14 +02:00
1 parent ac629fc4b1
commit 4d122fc310
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -63,3 +63,5 @@ test('generic PACTOR station runs without VARA, chat, monitor or BBS',async()=>{
test('generic own-call handling accepts SSIDs without station constants',()=>{assert.equal(mailFolder({from:'N9DEMO-11',status:'N'},'N9DEMO'),'queue');assert.equal(mailFolder({from:'[email protected]',status:'F'},'N9DEMO'),'sent');assert.equal(mailFolder({from:'N1OTHER',status:'N'},'N9DEMO'),'inbox');});
test('configuration detects a Telnet-only node without inventing a modem',async()=>{const {parseConfig}=await import('./config.mjs');const c=parseConfig('NODECALL=N8TEST-7\nPORT\nDRIVER=Telnet.dll\nPORTNUM=2\nHTTPPORT=8088\nTCPPORT=9000\nENDPORT');assert.equal(c.httpPort,8088);assert.equal(c.telnetPort,9000);assert.deepEqual(c.radioPorts,[]);assert.equal(c.call,'N8TEST');});
test('empty modem state after restart remains idle',()=>{assert.equal(parseRadio('Comms State Connected to VARA TNC TNC State Mode Channel State Clear').state,'Free');});