Skip to content

Commit

Permalink
Fixed:
Browse files Browse the repository at this point in the history
  * don't play battery percentage sounds if we're not connected
  • Loading branch information
Chris Turner committed Jan 22, 2015
1 parent 2f03e37 commit 0cdd8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taranis-lua/telem7.lua
Expand Up @@ -22,7 +22,7 @@ local function background()
end

-- play the battery % remaining every 15s
if time > bat_time + 1500 then
if ((time > bat_time + 1500) and bat_prcnt > 0) then
playFile(SYS_SNDS .. "00" .. bat_prcnt .. ".wav")
playFile(SYS_SNDS .. "0130.wav") -- percent
bat_time = time
Expand Down

0 comments on commit 0cdd8d8

Please sign in to comment.