I want to fit two nmea strings in the scratchpad of a 28x1. To get the start point of the second string I use @ptr so...
So I figured to only read out to the last byte used I would just issue the @ptr command again but this just gives me the initial @ptr result again.
Am I missing the concept or is this a case of sorry dude old firmware.
Code:
FIRST_STRING:
SEROUT GPS_TX,GPS_BAUD,("$PSRF103,00,01,00,01*25",CR,LF)
HSERIN [1000,NEXT_STRING],0,126,("$")
NEXT_STRING:
b1 = @ptr
b1 = b1 - 2 'REMOVE CR AND LF
put b1,"," 'MAINTAIN CSV FORMAT
b1= b1+1
b2=127-b1
SEROUT GPS_TX,GPS_BAUD,("$PSRF103,05,01,00,01*20",CR,LF)
HSERIN [1000,WRITE_DATA],b1,b2,("$")
Am I missing the concept or is this a case of sorry dude old firmware.
Last edited: