comparison main.c @ 385:a827f1c5ddbe

don't stay awake for any command - chews battery if server goes down
author Matt Johnston <matt@ucc.asn.au>
date Mon, 09 Jul 2012 00:39:07 +0800
parents f429169aa3cd
children 1e2068c5413a
comparison
equal deleted inserted replaced
384:abe8c530812e 385:a827f1c5ddbe
683 } 683 }
684 684
685 if (have_cmd) 685 if (have_cmd)
686 { 686 {
687 have_cmd = 0; 687 have_cmd = 0;
688 comms_timeout = WAKE_SECS;
689 read_handler(); 688 read_handler();
690 continue; 689 continue;
691 } 690 }
692 691
693 // wait for commands from the master 692 // wait for commands from the master