n5110_crash_fix_127
This commit is contained in:
@@ -104,7 +104,7 @@ static inline bool _init_async_event_queue(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline bool _send_async_event(lwip_event_packet_t ** e){
|
static inline bool _send_async_event(lwip_event_packet_t ** e){
|
||||||
return _async_queue && xQueueSend(_async_queue, e, portMAX_DELAY) == pdPASS;
|
return _async_queue && xQueueSend(_async_queue, e, SEND_ASYNC_EVENT_DELAY) == pdPASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool _prepend_async_event(lwip_event_packet_t ** e){
|
static inline bool _prepend_async_event(lwip_event_packet_t ** e){
|
||||||
|
|||||||
@@ -46,7 +46,9 @@ extern "C" {
|
|||||||
#ifndef XQUEUE_SIZE
|
#ifndef XQUEUE_SIZE
|
||||||
#define XQUEUE_SIZE 128 // (32)
|
#define XQUEUE_SIZE 128 // (32)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef SEND_ASYNC_EVENT_DELAY
|
||||||
|
#define SEND_ASYNC_EVENT_DELAY portMAX_DELAY
|
||||||
|
#endif
|
||||||
class AsyncClient;
|
class AsyncClient;
|
||||||
|
|
||||||
#define ASYNC_MAX_ACK_TIME 5000
|
#define ASYNC_MAX_ACK_TIME 5000
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define YOVERSION "0.9.122"
|
#define YOVERSION "0.9.127"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
@@ -257,6 +257,9 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
|
|||||||
#ifndef MUTE_VAL
|
#ifndef MUTE_VAL
|
||||||
#define MUTE_VAL HIGH // Write this to MUTE_PIN when player is stopped
|
#define MUTE_VAL HIGH // Write this to MUTE_PIN when player is stopped
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MUTE_LOCK
|
||||||
|
#define MUTE_LOCK false // for vs1053 Shield rev2 - lock MUTE_PIN to !MUTE_VAL
|
||||||
|
#endif
|
||||||
#ifndef BRIGHTNESS_PIN
|
#ifndef BRIGHTNESS_PIN
|
||||||
#define BRIGHTNESS_PIN 255 // BRIGHTNESS Pin
|
#define BRIGHTNESS_PIN 255 // BRIGHTNESS Pin
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ void Player::init() {
|
|||||||
Serial.print("##[BOOT]#\tplayer.init\t");
|
Serial.print("##[BOOT]#\tplayer.init\t");
|
||||||
playerQueue=NULL;
|
playerQueue=NULL;
|
||||||
playerQueue = xQueueCreate( 5, sizeof( playerRequestParams_t ) );
|
playerQueue = xQueueCreate( 5, sizeof( playerRequestParams_t ) );
|
||||||
|
setOutputPins(false);
|
||||||
|
delay(50);
|
||||||
memset(_plError, 0, PLERR_LN);
|
memset(_plError, 0, PLERR_LN);
|
||||||
#ifdef MQTT_ROOT_TOPIC
|
#ifdef MQTT_ROOT_TOPIC
|
||||||
memset(burl, 0, MQTT_BURL_SIZE);
|
memset(burl, 0, MQTT_BURL_SIZE);
|
||||||
@@ -56,7 +57,7 @@ void Player::init() {
|
|||||||
setTone(config.store.bass, config.store.middle, config.store.trebble);
|
setTone(config.store.bass, config.store.middle, config.store.trebble);
|
||||||
setVolume(0);
|
setVolume(0);
|
||||||
_status = STOPPED;
|
_status = STOPPED;
|
||||||
setOutputPins(false);
|
//setOutputPins(false);
|
||||||
_volTimer=false;
|
_volTimer=false;
|
||||||
playmutex = xSemaphoreCreateMutex();
|
playmutex = xSemaphoreCreateMutex();
|
||||||
randomSeed(analogRead(0));
|
randomSeed(analogRead(0));
|
||||||
@@ -159,7 +160,8 @@ void Player::loop() {
|
|||||||
|
|
||||||
void Player::setOutputPins(bool isPlaying) {
|
void Player::setOutputPins(bool isPlaying) {
|
||||||
if(LED_BUILTIN!=255) digitalWrite(LED_BUILTIN, LED_INVERT?!isPlaying:isPlaying);
|
if(LED_BUILTIN!=255) digitalWrite(LED_BUILTIN, LED_INVERT?!isPlaying:isPlaying);
|
||||||
if(MUTE_PIN!=255) digitalWrite(MUTE_PIN, isPlaying?!MUTE_VAL:MUTE_VAL);
|
bool _ml = MUTE_LOCK?!MUTE_VAL:(isPlaying?!MUTE_VAL:MUTE_VAL);
|
||||||
|
if(MUTE_PIN!=255) digitalWrite(MUTE_PIN, _ml);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::_play(uint16_t stationId) {
|
void Player::_play(uint16_t stationId) {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
More info on https://github.com/e2002/yoradio/wiki/Widgets#widgets-description
|
More info on https://github.com/e2002/yoradio/wiki/Widgets#widgets-description
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
|
|
||||||
#ifndef displayLCD1602conf_h
|
#ifndef displayLCD2004conf_h
|
||||||
#define displayLCD1602conf_h
|
#define displayLCD2004conf_h
|
||||||
|
|
||||||
#define DSP_WIDTH 20
|
#define DSP_WIDTH 20
|
||||||
#define TFT_FRAMEWDT 0
|
#define TFT_FRAMEWDT 0
|
||||||
|
|||||||
@@ -180,8 +180,9 @@ void DspCore::clearClock(){
|
|||||||
|
|
||||||
|
|
||||||
void DspCore::loop(bool force) {
|
void DspCore::loop(bool force) {
|
||||||
|
if(digitalRead(TFT_CS)==LOW) return;
|
||||||
display();
|
display();
|
||||||
delay(5);
|
delay(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DspCore::charSize(uint8_t textsize, uint8_t& width, uint16_t& height){
|
void DspCore::charSize(uint8_t textsize, uint8_t& width, uint16_t& height){
|
||||||
|
|||||||
@@ -265,6 +265,9 @@ void SliderWidget::_clear() {
|
|||||||
// _oldvalwidth = 0;
|
// _oldvalwidth = 0;
|
||||||
dsp.fillRect(_config.left, _config.top, _width, _height, _bgcolor);
|
dsp.fillRect(_config.left, _config.top, _width, _height, _bgcolor);
|
||||||
}
|
}
|
||||||
|
void SliderWidget::_reset() {
|
||||||
|
_oldvalwidth = 0;
|
||||||
|
}
|
||||||
/************************
|
/************************
|
||||||
VU WIDGET
|
VU WIDGET
|
||||||
************************/
|
************************/
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ class SliderWidget: public Widget {
|
|||||||
void _draw();
|
void _draw();
|
||||||
void _drawslider();
|
void _drawslider();
|
||||||
void _clear();
|
void _clear();
|
||||||
|
void _reset();
|
||||||
};
|
};
|
||||||
|
|
||||||
class VuWidget: public Widget {
|
class VuWidget: public Widget {
|
||||||
|
|||||||
Reference in New Issue
Block a user