Re: "Onn" and what does flushWSdata do?by Docfxit (Login Docfxit)
I see that I set the value of debugfile to Onn and on the if statements I had ONN. It was working but I changed it anyway so they are all the same.
'** clear any previous data from the station, both from serial port buffer
'** and from wsInputBuf$
wsInputBuf$ = ""
IF wsFileNum 0 THEN ' the port is open, so read any chars
WHILE LOC(wsFileNum) 'check to see if anything is in buffer
junk$ = INPUT$(LOC(wsFileNum), # wsFileNum)
Now can you see why the com port doesn't seem to be opening?