Shop OBEX P1 Docs P2 Docs Learn Events
Propeller stops running, when i add the following code — Parallax Forums

Propeller stops running, when i add the following code

propwellpropwell Posts: 87
edited 2009-12-05 17:03 in Propeller 1
Hi folks,

i'm becoming jumpin.gifcry.gifeyes.giffreaked.gif about the following problem:

I've got a certain program running, which works pretty good. But as i add the following lines, the propeller stops running at a certain point:

    sm.rxflush 
    sm.tx("s") 
    if sm.rxtime(20)==1
      msg[noparse][[/noparse]0]:=sm.rxtime(20)            '
    else
      sm.tx("s") 




(sm. is my SerialMirror Object)

My total Code is attached, maybe you could have a look.
Thank you so much,
Max
zip
128K

Comments

  • Graham StablerGraham Stabler Posts: 2,510
    edited 2009-12-05 17:03
    You could start by including each command in turn until you find out which one is causing it to hang.

    rxflush has a conditional loop so is a prime suspect I would think.

    Graham
Sign In or Register to comment.