v0.9.340b
This commit is contained in:
@@ -230,6 +230,9 @@ Work is in progress...
|
|||||||
|
|
||||||
---
|
---
|
||||||
## Version history
|
## Version history
|
||||||
|
#### v0.9.340b
|
||||||
|
- fixed compilation error audioVS1053Ex.cpp:181:5: error: 'sdog' was not declared in this scope
|
||||||
|
|
||||||
#### v0.9.337b (homeassistant component)
|
#### v0.9.337b (homeassistant component)
|
||||||
- fixed the error of subscribing to mqtt topic on some systems
|
- fixed the error of subscribing to mqtt topic on some systems
|
||||||
|
|
||||||
|
|||||||
@@ -178,18 +178,15 @@ void Audio::control_mode_off()
|
|||||||
{
|
{
|
||||||
CS_HIGH(); // End control mode
|
CS_HIGH(); // End control mode
|
||||||
spi_VS1053->endTransaction(); // Allow other SPI users
|
spi_VS1053->endTransaction(); // Allow other SPI users
|
||||||
sdog.giveMutex();
|
|
||||||
}
|
}
|
||||||
void Audio::control_mode_on()
|
void Audio::control_mode_on()
|
||||||
{
|
{
|
||||||
sdog.takeMutex();
|
|
||||||
spi_VS1053->beginTransaction(VS1053_SPI_CTL); // Prevent other SPI users
|
spi_VS1053->beginTransaction(VS1053_SPI_CTL); // Prevent other SPI users
|
||||||
DCS_HIGH(); // Bring slave in control mode
|
DCS_HIGH(); // Bring slave in control mode
|
||||||
CS_LOW();
|
CS_LOW();
|
||||||
}
|
}
|
||||||
void Audio::data_mode_on()
|
void Audio::data_mode_on()
|
||||||
{
|
{
|
||||||
sdog.takeMutex();
|
|
||||||
spi_VS1053->beginTransaction(VS1053_SPI_DATA); // Prevent other SPI users
|
spi_VS1053->beginTransaction(VS1053_SPI_DATA); // Prevent other SPI users
|
||||||
CS_HIGH(); // Bring slave in data mode
|
CS_HIGH(); // Bring slave in data mode
|
||||||
DCS_LOW();
|
DCS_LOW();
|
||||||
@@ -199,7 +196,6 @@ void Audio::data_mode_off()
|
|||||||
//digitalWrite(dcs_pin, HIGH); // End data mode
|
//digitalWrite(dcs_pin, HIGH); // End data mode
|
||||||
DCS_HIGH();
|
DCS_HIGH();
|
||||||
spi_VS1053->endTransaction(); // Allow other SPI users
|
spi_VS1053->endTransaction(); // Allow other SPI users
|
||||||
sdog.giveMutex();
|
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
uint16_t Audio::read_register(uint8_t _reg)
|
uint16_t Audio::read_register(uint8_t _reg)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define YOVERSION "0.9.337b"
|
#define YOVERSION "0.9.340b"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
|
|||||||
Reference in New Issue
Block a user