Skip to content

Commit 4d75350

Browse files
committed
besttimetoday: also provide best time in channel
1 parent 963a895 commit 4d75350

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

besttimetoday.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local TODAY = string.format('%d%d%d', Y, M, D)
33

44
local bestTimeToday = loadVar('best_time_today')
55
local deltaId = addChannel('LapDeltaToday', 10, 3, -100, 100, 's')
6+
local bestId = addChannel('BestTimeToday', 1, 3, 0, 5, 's')
67

78

89
-- reset?
@@ -17,6 +18,7 @@ function __update_besttime(bestTime)
1718
info('updating today\'s best time to: '..bestTime)
1819
saveVar('best_time_today', bestTime)
1920
bestTimeToday = bestTime
21+
setChannel(bestId)
2022
end
2123

2224

0 commit comments

Comments
 (0)