Hi everyone, Kind of new at this and I'm pulling my hair out. Here's the code I'm having trouble with
dtempset:
lcdout 254,1, "set Daytime Temp"
dtempset2:
lcdout 254,192, dec2 temp," Celsius"
if up = 1 then
temp = temp + 1
if temp > 45 then
temp = 45
endif
endif

if down = 1 then
temp = temp - 1
if temp < 1 then
temp = 1
endif
endif
pause 100

if enter = 1 then
write 13,temp
pause 20
gosub check
goto ntempset
endif
goto dtempset2

ntempset:
lcdout 254,1, "set Night Temp"
ntempset2:
lcdout 254,192, dec2 temp," Celcius"
if up = 1 then
temp = temp + 1
if temp > 45 then
temp = 45
endif
endif

if down = 1 then
temp = temp - 1
if temp < 1 then
temp = 1
endif
endif
pause 100

if enter = 1 then
write 14,temp
pause 20
gosub check:
goto dtempset
endif
goto dtempset2

check:
read 13,test
pause 20
read 14, test2
lcdout 254,1, dec test," ",dec test2
pause 5000
return

it seems that the value keeps being pushed into address 13 and over and not into 14???? I'm going crazy!