I'm using Chris's LCD Demo code in Slot 0 of a BS2px to create a time stamp when a sensor is triggered. The Sensor code is spread out in Slots 1 thru 5. I then use RUN statements to skip from Slot 5 back to Slot 1 skipping the initialization in Slot 0 so it only occurs at the start. I placed a copy of the Get Time subroutine in each Slot to minimize jumping back and forth among the 5 "active" Slots. I also have a battery on the DS1302 to keep the time.
The problem I'm having is that when I lose power, the DEBUGIN command waits for an input, and the remainder of the code does not execute until I press either the "1" to re-enter the Date/Time, or the "2" button to display the Date/Time . When I press "2' the time is recorded correctly so the battery back-up is working.
How can I skip the initialization of the Date/Time after a brief power outage (since it is backed-up with the battery) and have the main code execute? Do I need to add a loop and couter to skip out of the loop if the Date/Time isn't input within a certain time?