Hi,
I don't see the need for the ArrayWrite in there. As long as you don't exectute the ArrayRead the Value variable is untouched, no need to write the same value to it again. And, likewise, there's no need to write the value back to EEPROM if it didn't actually change. How about this:/Henrik.Code:Main: gosub ClearArray HSEROUT [" Enter New Motor Runtime x 10",13,10] ' Enter new Value if needed HSERIN [STR array\7\13] IF array[0] = 10 or array[0] = 13 OR array[0] = 0 THEN report ' Value didn't change, print old value. ArrayRead array,[DEC Value] ' Get new value from input string Write 0, Value.byte1 ' Write new value to eeprom Write 1, Value.byte0 report: HSEROUT [ " ",dec Value/10,46,DEC Value dig 0," Seconds",13,10,10] Goto Main ClearArray: For i = 0 to 4 array[i] = 0 NEXT RETURN




Bookmarks