comparison main.c @ 79:eb532c2a447d

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 6e47a61edc47
children 1e2068c5413a
comparison
equal deleted inserted replaced
78:c7b6da1adb47 79:eb532c2a447d
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