Added a SOMO function with track number 0-255

This commit is contained in:
bsongis
2012-02-15 17:45:38 +00:00
parent 0c8cea428d
commit 4bd49938f3
3 changed files with 18 additions and 10 deletions
+6 -1
View File
@@ -1084,7 +1084,7 @@ void evalFunctions()
if (sd->func < FUNC_TRAINER) {
safetyCh[sd->func] = (int8_t)sd->param;
}
if (sd->func == FUNC_PLAY_SOUND/* && (~active_functions & mask)*/) {
if (sd->func == FUNC_PLAY_SOUND) {
#if defined(AUDIO)
audioDefevent(AU_FRSKY_FIRST+sd->param);
#else
@@ -1093,6 +1093,11 @@ void evalFunctions()
}
#endif
}
#if defined(SOMO)
if (sd->func == FUNC_PLAY_SOMO && (~active_functions & mask)) {
somoPushPrompt(sd->param);
}
#endif
active_functions |= mask;
}
else {