Skip to content

Commit

Permalink
changed variable name for waiting to more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfish committed Aug 2, 2010
1 parent 2b562c0 commit 1affee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VHSbeacon.pde
Expand Up @@ -52,9 +52,9 @@ void setup() {
}

void loop() {
unsigned long receive_until = millis() + 100;
unsigned long do_until = millis() + 100;

while (millis() < receive_until) {
while (millis() < do_until) {
if (irrecv.decode(&results)) {
if ((results.bits == 1) || (results.bits == 2)) {
switch (results.value) {
Expand All @@ -80,8 +80,8 @@ void loop() {
reset_at = 0;
}

receive_until = millis() + 100;
while (millis() < receive_until) {
do_until = millis() + 100;
while (millis() < do_until) {
if (IS_NEUTRAL) {
irsend.sendVHS(STATUS_RED, 2);
}
Expand Down

0 comments on commit 1affee4

Please sign in to comment.