diff options
| author | Keith Packard <keithp@keithp.com> | 2015-08-29 13:18:46 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-08-29 13:18:46 -0700 | 
| commit | 368f87918547f89e7eb2a92990621e75e07a3b25 (patch) | |
| tree | d56cdfeeb1dad80adfb5be1ae0f023d4bc1f498a /src | |
| parent | f491eec1b950e4ad35a535db254a27a3dd2ad430 (diff) | |
altos/telefire: No reply for ARMED. Ignore time for FIRE.
This will let us do drag races by letting the LCO arm multiple boxes
and fire them all with a single command.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/ao_pad.c | 10 | 
1 files changed, 1 insertions, 9 deletions
| diff --git a/src/drivers/ao_pad.c b/src/drivers/ao_pad.c index ffe46c68..419ea8d3 100644 --- a/src/drivers/ao_pad.c +++ b/src/drivers/ao_pad.c @@ -288,8 +288,7 @@ ao_pad(void)  			PRINTD ("armed\n");  			ao_pad_armed = command.channels;  			ao_pad_arm_time = ao_time(); - -			/* fall through ... */ +			break;  		case AO_LAUNCH_QUERY:  			if (command.box != ao_pad_box) { @@ -320,13 +319,6 @@ ao_pad(void)  					ao_pad_arm_time, ao_time());  				break;  			} -			time_difference = command.tick - ao_time(); -			if (time_difference < 0) -				time_difference = -time_difference; -			if (time_difference > 10) { -				PRINTD ("time different too large %d\n", time_difference); -				break; -			}  			PRINTD ("ignite\n");  			ao_pad_ignite = ao_pad_armed;  			ao_pad_arm_time = ao_time(); | 
