v0.6.202
This commit is contained in:
@@ -281,6 +281,11 @@ Work is in progress...
|
|||||||
|
|
||||||
---
|
---
|
||||||
## Version history
|
## 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
|
#### v0.6.200
|
||||||
- please backup your playlist and wifi settings before updating (export)
|
- please backup your playlist and wifi settings before updating (export)
|
||||||
- accelerated displays up to ~30fps (everything except LCD)
|
- accelerated displays up to ~30fps (everything except LCD)
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ void updateWeather() {
|
|||||||
NULL, /* parameter of the task */
|
NULL, /* parameter of the task */
|
||||||
0, /* priority of the task */
|
0, /* priority of the task */
|
||||||
&weatherUpdateTaskHandle, /* Task handle to keep track of created 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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************
|
/***********************************************
|
||||||
|
|||||||
@@ -153,7 +153,10 @@ void encoder2Loop() {
|
|||||||
if (ENC2_BTNB != 255) {
|
if (ENC2_BTNB != 255) {
|
||||||
bp = digitalRead(ENC2_BTNB);
|
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);
|
controlsEvent(encNewPosition > 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -444,6 +444,8 @@ void Display::loop() {
|
|||||||
plCurrent.loop();
|
plCurrent.loop();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
dsp.loop();
|
dsp.loop();
|
||||||
if (dsp_on_loop) dsp_on_loop(&dsp);
|
if (dsp_on_loop) dsp_on_loop(&dsp);
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ bool NetServer::begin() {
|
|||||||
ssidCount = 0;
|
ssidCount = 0;
|
||||||
int mcb = heap_caps_get_free_size(MALLOC_CAP_8BIT);
|
int mcb = heap_caps_get_free_size(MALLOC_CAP_8BIT);
|
||||||
int mci = heap_caps_get_free_size(MALLOC_CAP_INTERNAL);
|
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);
|
log_i("[yoradio] webserver.on / - MALLOC_CAP_INTERNAL=%d, MALLOC_CAP_8BIT=%d", mci, mcb);
|
||||||
netserver.resumePlay = mcb < MIN_MALLOC;
|
netserver.resumePlay = mcb < MIN_MALLOC;
|
||||||
if (netserver.resumePlay) {
|
if (netserver.resumePlay) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define VERSION "0.6.200"
|
#define VERSION "0.6.202"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS 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
|
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);
|
//volume = map(eeprom_config.volume, 0, 21, 0, 255);
|
||||||
//m_vol = map(vol, 0, 254, 0, 64);
|
//m_vol = map(vol, 0, 254, 0, 64);
|
||||||
m_vol = vol;
|
m_vol = vol;
|
||||||
|
|||||||
Reference in New Issue
Block a user