repo.or.cz
/
opentx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix doc path
[opentx.git]
/
tools
/
release22
/
tts_common.py
blob
25623b005340d853f54e230207cef7451c14a51e
1
NO_ALTERNATE
=
1024
2
PROMPT_CUSTOM_BASE
=
256
3
PROMPT_SYSTEM_BASE
=
0
4
board
=
"taranis"
5
6
import
sys
7
8
def
filename
(
idx
,
alternate
=
0
):
9
ext
=
".wav"
10
if
isinstance
(
idx
,
int
):
11
result
=
"
%0
4d
%s
"
% (
idx
,
ext
)
12
elif
board
in
(
'sky9x'
,
'taranis'
):
13
result
=
idx
+
ext
14
return
result