From b7f08f47f776141bababbcf2191ad074fa60aca8 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 18 May 2016 18:35:38 -0500 Subject: Tiny laser pulses are hard to aim --- laser-tag software/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/laser-tag software/main.c b/laser-tag software/main.c index 8c226b4..2a6fdce 100755 --- a/laser-tag software/main.c +++ b/laser-tag software/main.c @@ -61,6 +61,7 @@ static const uint8_t *images[] = { static const int image_count = sizeof images / sizeof *images; static int current_image = 0; static volatile int cue_next_image = 0; +static uint32_t laser_pulse_length = 32; //////////////////////////// @@ -305,7 +306,7 @@ static void lptmr_call_back(void) /* FIRE THE LASER */ if (laser_on) { - LPUART_DRV_SendData(1, txBuff, 1); + LPUART_DRV_SendData(1, txBuff, laser_pulse_length); } /* countdown to turn off LED */ -- cgit v1.2.3-18-g5258