Shop OBEX P1 Docs P2 Docs Learn Events
Gps_IO_Mini — Parallax Forums

Gps_IO_Mini

teganburnsteganburns Posts: 134
edited 2013-01-05 18:27 in Propeller 1
I'm sure there is a simple answer for this but...

Im working with the GPS_IO_mini.spin program and i think my problem is getting the "return".

I call on a method but don't know how to use the return command. I understand the concept, just need a little help.

Thank You!
in advance

Comments

  • cavelambcavelamb Posts: 720
    edited 2013-01-05 18:27
    okay := uart.start(serRecv,serXmit,1,4800)
    return cog := cognew(readNEMA,@gps_stack) + 1

    Above:
    okay catches the return from uart.start.

    So why is there a return before cog in the next line?
    Shouldn't that be in the readNEMA routine to indicate what variable will be returned?


    Page 197 in the manual for the details on RETURN and RESULT.

    Page 182 - for Rvalue (return value)
Sign In or Register to comment.