Skip to content

Commit f60432a

Browse files
committed
v0.9.434
1 parent 3f5562b commit f60432a

File tree

7 files changed

+26
-12
lines changed

7 files changed

+26
-12
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,14 @@ Work is in progress...
234234

235235
---
236236
## Version history
237+
### 0.9.434
238+
- fixed the issue with exiting Screensaver Blank Screen mode via button presses and IR commands.
239+
- reduced the minimum frequency for tone control on I2S modules to 80Hz.
240+
- increased the display update task delay to 10 TICKS.
241+
to revert to the previous setting, add `#define DSP_TASK_DELAY 2` to `myoptions.h`.
242+
- when ENCODER2 is connected, the UP and DOWN buttons now work as PREV and NEXT (single click).
243+
- implemented backlight off in Screensaver Blank Screen mode.
244+
237245
### 0.9.428
238246
- fixed freezing after SD scanning during playback
239247
- AsyncWebSocket queue increased to 128

yoRadio/src/audioI2S/Audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4733,7 +4733,7 @@ void Audio::IIR_calculateCoefficients(int8_t G0, int8_t G1, int8_t G2){ // Infi
47334733
if(G2 < -40) G2 = -40;
47344734
if(G2 > 6) G2 = 6;
47354735

4736-
const float FcLS = 500; // Frequency LowShelf[Hz]
4736+
const float FcLS = 80; // Frequency LowShelf[Hz] //500
47374737
const float FcPKEQ = 3000; // Frequency PeakEQ[Hz]
47384738
const float FcHS = 6000; // Frequency HighShelf[Hz]
47394739

yoRadio/src/core/config.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,11 @@ void Config::setBrightness(bool dosave){
727727
#endif
728728
}
729729

730-
void Config::setDspOn(bool dspon){
731-
store.dspon = dspon;
732-
saveValue(&store.dspon, store.dspon, true, true);
730+
void Config::setDspOn(bool dspon, bool saveval){
731+
if(saveval){
732+
store.dspon = dspon;
733+
saveValue(&store.dspon, store.dspon, true, true);
734+
}
733735
#ifdef USE_NEXTION
734736
if(!dspon) nextion.sleep();
735737
else nextion.wake();

yoRadio/src/core/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class Config {
233233
void setTimezoneOffset(uint16_t tzo);
234234
uint16_t getTimezoneOffset();
235235
void setBrightness(bool dosave=false);
236-
void setDspOn(bool dspon);
236+
void setDspOn(bool dspon, bool saveval = true);
237237
void sleepForAfter(uint16_t sleepfor, uint16_t sleepafter=0);
238238
void bootInfo();
239239
void doSleepW();

yoRadio/src/core/controls.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void irLoop() {
256256
if(config.ircodes.irVals[target][j]==irResults.value){
257257
if (network.status != CONNECTED && network.status!=SDREADY && target!=IR_AST) return;
258258
if(target!=IR_AST && display.mode()==LOST) return;
259-
if (display.mode() == SCREENSAVER) {
259+
if (display.mode() == SCREENSAVER || display.mode() == SCREENBLANK) {
260260
display.putRequest(NEWMODE, PLAYER);
261261
return;
262262
}
@@ -491,7 +491,7 @@ void onBtnClick(int id) {
491491
if (display.mode() == PLAYER) {
492492
player.toggle();
493493
}
494-
if (display.mode() == SCREENSAVER) {
494+
if (display.mode() == SCREENSAVER || display.mode() == SCREENBLANK) {
495495
display.putRequest(NEWMODE, PLAYER);
496496
#ifdef DSP_LCD
497497
delay(200);
@@ -525,7 +525,7 @@ void onBtnClick(int id) {
525525
}
526526
} else {
527527
if (display.mode() == PLAYER) {
528-
if(config.store.skipPlaylistUpDown){
528+
if(config.store.skipPlaylistUpDown || ENC2_BTNL!=255){
529529
if (id == EVT_BTNUP) {
530530
player.prev();
531531
} else {
@@ -552,7 +552,7 @@ void onBtnClick(int id) {
552552
}
553553

554554
void onBtnDoubleClick(int id) {
555-
if (display.mode() == SCREENSAVER) {
555+
if (display.mode() == SCREENSAVER || display.mode() == SCREENBLANK) {
556556
display.putRequest(NEWMODE, PLAYER);
557557
return;
558558
}

yoRadio/src/core/display.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Page *pages[] = { new Page(), new Page(), new Page(), new Page() };
2626
#define CORE_STACK_SIZE 1024*3
2727
#endif
2828
#ifndef DSP_TASK_DELAY
29-
#define DSP_TASK_DELAY 2
29+
#define DSP_TASK_DELAY pdMS_TO_TICKS(10)
3030
#endif
3131
#if !((DSP_MODEL==DSP_ST7735 && DTYPE==INITR_BLACKTAB) || DSP_MODEL==DSP_ST7789 || DSP_MODEL==DSP_ST7796 || DSP_MODEL==DSP_ILI9488 || DSP_MODEL==DSP_ILI9486 || DSP_MODEL==DSP_ILI9341 || DSP_MODEL==DSP_ILI9225)
3232
#undef BITRATE_FULL
@@ -285,12 +285,16 @@ void Display::_swichMode(displayMode_e newmode) {
285285
_nums.setText("");
286286
config.isScreensaver = false;
287287
_pager.setPage( pages[PG_PLAYER]);
288+
config.setDspOn(config.store.dspon, false);
288289
pm.on_display_player();
289290
}
290291
if (newmode == SCREENSAVER || newmode == SCREENBLANK) {
291292
config.isScreensaver = true;
292293
_pager.setPage( pages[PG_SCREENSAVER]);
293-
if (newmode == SCREENBLANK) dsp.clearClock();
294+
if (newmode == SCREENBLANK) {
295+
dsp.clearClock();
296+
config.setDspOn(false, false);
297+
}
294298
}else{
295299
config.screensaverTicks=SCREENSAVERSTARTUPDELAY;
296300
config.screensaverPlayingTicks=SCREENSAVERSTARTUPDELAY;

yoRadio/src/core/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef options_h
22
#define options_h
33

4-
#define YOVERSION "0.9.428"
4+
#define YOVERSION "0.9.434"
55

66
/*******************************************************
77
DO NOT EDIT THIS FILE.

0 commit comments

Comments
 (0)