-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(radio,cpn): Startup splash screen and sound changes. #3451
Conversation
Hm, be interesting to see if this fixes #135 also |
I think it should fix most cases; but it's a hard one to test. I tested a simple widget and calling playSound in the refresh method is ok, the sound plays after the welcome sound. |
It's should actually to test this particular case - the yappu telemetry widget plays a "yappu telemetry ready" sound as it starts, so if that no longer precedes the ETX |
Yaapu plays its startup sound in the create function so this change does specifically fix #135 |
Added translation for PR EdgeTX#3451: #define TR_PLAY_HELLO "Startljud"
Is there a string for translation of "Play Startup Sound" in Companion? |
827e35c
to
37a22f7
Compare
afc8914
to
74cb2ce
Compare
e2ffa60
to
670a112
Compare
670a112
to
a38e277
Compare
a38e277
to
3ae9ea7
Compare
3ae9ea7
to
3a8c51b
Compare
3a8c51b
to
bdd6659
Compare
Hi all... hope you've been enjoying your weekend :) Can I get a translation for this one please. Screenshots in the initial post for context. #define TR_PLAY_HELLO "Startup Sound"
|
FR:
#define TR_PLAY_HELLO "Son de démarrage"
|
SE:#define TR_PLAY_HELLO "Startljud"
|
HE |
DE: |
DA ... and nice weekend to you too |
CN #define TR_PLAY_HELLO "开机语音" TW #define TR_PLAY_HELLO "開機語音" |
CZ #define TR_PLAY_HELLO "Zvuk při spuštění" |
PT #define TR_PLAY_HELLO "Som ao ligar" |
Ooops. Any ideas? |
Suspending the watchdog timer seems to fix it - hopefully this is the correct way to do it. |
Interesting... it fitted the timeline of the watchdog, but I had thought RTOS_WAIT_TICKS would have satisfied it... 🤷 @raphaelcoeffic @gagarinlg Your thoughts? |
Do not stop the watchdog! |
watchdogSuspend() is used elsewhere - is it not safe to use while the splash screen is being shown? |
Then we should redesign those parts. |
I've changed the splash timeout loop to use WDG_RESET instead. |
Add option to disable startup sound. Add Companion support for changes.
022c8fb
to
b4c3a14
Compare
PR #3451 introduced a change that caused the mixer task to be started out of the UI task, which introduces a race condition `mixerTaskId.rtos_handle`, as the mixer scheduler might trigger before `xTaskCreateStatic` returns and the task handle is assigned. This PR fixes the issue by delaying the start of the mixer scheduler until `xTaskCreateStatic` returned and the task handler has been properly assigned.
PR #3451 introduced a change that caused the mixer task to be started out of the UI task, which introduces a race condition `mixerTaskId.rtos_handle`, as the mixer scheduler might trigger before `xTaskCreateStatic` returns and the task handle is assigned. This PR fixes the issue by delaying the start of the mixer scheduler until `xTaskCreateStatic` returned and the task handler has been properly assigned.
PR #3451 moved the start of the mixer task to a point in time where the task scheduler is already started (UI task). Before that change, the mixer task would be created before and effectively started after the task scheduler started. This introduces a race condition on `mixerTaskId.rtos_handle`, as the mixer scheduler might trigger before `xTaskCreateStatic()` returns and the task handle is assigned. This PR fixes the issue by delaying the start of the mixer scheduler until `xTaskCreateStatic()` returned and the task handler has been properly assigned.
Fixes #3438, fixes #2537, fixes #391
Summary of changes:
Notes: