This commit is contained in:
e2002
2022-04-12 09:58:42 +03:00
parent b840b4418a
commit 51f85109c9
7 changed files with 15 additions and 4 deletions

View File

@@ -281,6 +281,11 @@ Work is in progress...
---
## Version history
#### v0.6.202
- fixed errors in the operation of the second encoder
- rewrote [plugin example](https://github.com/e2002/yoradio/blob/main/exsamples/displayhandlers.ino)
- fixed compilation errors on macOS #2
#### v0.6.200
- please backup your playlist and wifi settings before updating (export)
- accelerated displays up to ~30fps (everything except LCD)

View File

@@ -134,7 +134,7 @@ void updateWeather() {
NULL, /* parameter of the task */
0, /* priority of the task */
&weatherUpdateTaskHandle, /* Task handle to keep track of created task */
1); /* pin task to core CORE_FOR_LOOP_CONTROLS */
0); /* pin task to core CORE_FOR_LOOP_CONTROLS */
}
/***********************************************

View File

@@ -153,7 +153,10 @@ void encoder2Loop() {
if (ENC2_BTNB != 255) {
bp = digitalRead(ENC2_BTNB);
}
if (bp == HIGH && display.mode == PLAYER) display.putRequest({NEWMODE, STATIONS}); //display.swichMode(STATIONS);
if (bp == HIGH && display.mode == PLAYER) {
display.putRequest({NEWMODE, STATIONS});
while(display.mode != STATIONS) {delay(5);}
}
controlsEvent(encNewPosition > 0);
}
}

View File

@@ -444,6 +444,8 @@ void Display::loop() {
plCurrent.loop();
break;
}
default:
break;
}
dsp.loop();
if (dsp_on_loop) dsp_on_loop(&dsp);

View File

@@ -33,6 +33,7 @@ bool NetServer::begin() {
ssidCount = 0;
int mcb = heap_caps_get_free_size(MALLOC_CAP_8BIT);
int mci = heap_caps_get_free_size(MALLOC_CAP_INTERNAL);
(void)mci;
log_i("[yoradio] webserver.on / - MALLOC_CAP_INTERNAL=%d, MALLOC_CAP_8BIT=%d", mci, mcb);
netserver.resumePlay = mcb < MIN_MALLOC;
if (netserver.resumePlay) {

View File

@@ -1,7 +1,7 @@
#ifndef options_h
#define options_h
#define VERSION "0.6.200"
#define VERSION "0.6.202"
/*******************************************************
DO NOT EDIT THIS FILE.

View File

@@ -4246,7 +4246,7 @@ void Audio::setBalance(int8_t bal){ // bal -16...16
}
//---------------------------------------------------------------------------------------------------------------------
void Audio::setVolume(uint8_t vol) { // vol 22 steps, 0...21
if(vol > 255) vol = 254;
if(vol > 254) vol = 254;
//volume = map(eeprom_config.volume, 0, 21, 0, 255);
//m_vol = map(vol, 0, 254, 0, 64);
m_vol = vol;