Maker Pro
Maker Pro

code repeat??

hello guys!
is there any way of repeat this code line without writing them?

delay_ms(5000);
if (porta.f0==0) {goto start;}

because if i write it the programm crashes i dont know why... maybe the delay times are too big
 
i use loops but after 5 times of writting this then the programm excecutes ( i dont know why) i want to make 4 modes of checking an alarm sensor
mode A: no ring only sensor check
mode B: every 15sec ring with every 5sec sensor check
mode C: every 30 sec ring with every 5sec sensor check
mode D: every 60sec ring with every 5sec sensor check
 
Top