Skip to content

Commit

Permalink
Lap numbers are spoken as completed fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
jcowgar committed Jan 11, 2016
1 parent a25666a commit 4c7c741
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SCRIPTS/TELEMETRY/LAPTIMER.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local THROTTLE_CHANNEL = 'ch1'
local LAP_SWITCH = 'sh'
local SPEAK_GOOD_BAD = true
local SPEAK_MID = true
local SPEAK_LAP_NUMBER = true

--
-- User Configuration Done
Expand Down Expand Up @@ -335,6 +336,10 @@ local function timer_func(keyEvent)
local lapTicks = (getTime() - lapStartTicks)

laps[lapNumber] = { lapStartDateTime, lapTicks }

if SPEAK_LAP_NUMBER then
playNumber(lapNumber, 0)
end
end

lapNumber = lapNumber + 1
Expand Down

0 comments on commit 4c7c741

Please sign in to comment.