aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2016-05-18 18:35:38 -0500
committerDavid Barksdale <amatus@amatus.name>2016-05-18 18:35:38 -0500
commitb7f08f47f776141bababbcf2191ad074fa60aca8 (patch)
tree99ba6037bb31b1a476e5058b2e261248d04f4dad
parent5d72dd4b7db376788efd5846a2ca288fb2709195 (diff)
Tiny laser pulses are hard to aim
-rwxr-xr-xlaser-tag software/main.c3
1 files changed, 2 insertions, 1 deletions
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 */