Uhmmm strange things.. I spoke too soon.
If I follow your example code
when the program 1st runs and detects somthing in the buffer it gosubs to Term_RX, but with the goto hi-lighted above the program then never returns to the main program... If I change this to go to main I'm back where I started from...Code:Term_RX: HSERIN[nTest] SELECT CASE nTest CASE "S" TempWD = 0 HSERIN 1000,RX_Bombed,[DEC3 TempWD] normtemp[0] = TempWD gosub send Goto Term_Rx RX_Bombed: TimeoutCount = TimeOutCount + 1 lcdOUT $FE,1,"all we got was", dec TempWD,", ", DEC TimeOutCount end select Goto Term_Rx FlushBuffer: While PIR1.5 HSERIN [TempWd] WEND TempWd=0 LCDOUT $FE,1,"Buffer flushed" RETURN
I guess I should ask Charles to design his application so that it opens a second window to do the updates, and when it opens that window it sends a Q or P or something which makes the PIC jump to the Term_RX section, and then sends another character when the updating window is closed (sort of click APPLY )





Bookmarks