disable setVolume in standby mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 518ebde76d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-12-01 (Fri, 01 Dec 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-12-01 10:33:00 +01:00
parent df6e7f7f37
commit f951c3dcc1

View File

@@ -94,10 +94,12 @@ void CVolume::setVolume(const neutrino_msg_t key)
{
if (!g_RCInput) /* don't die... */
return;
int mode = CNeutrinoApp::getInstance()->getMode();
if (mode == NeutrinoModes::mode_standby)
return;
neutrino_msg_t msg = key;
static bool do_vol = true; /* false if volume is handled by external script */
int mode = CNeutrinoApp::getInstance()->getMode();
if (msg <= CRCInput::RC_MaxRC) {
if(m_mode != mode) {
m_mode = mode;