mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 15:04:18 +00:00
Make the remote control optional as it should be.
This commit is contained in:
parent
9b9b70eec7
commit
871ee09eee
2 changed files with 5 additions and 3 deletions
|
|
@ -357,7 +357,9 @@ int CMMDVMHost::run()
|
|||
|
||||
std::vector<std::pair<std::string, void (*)(const unsigned char*, unsigned int)>> subscriptions;
|
||||
subscriptions.push_back(std::make_pair("display", CMMDVMHost::onDisplay));
|
||||
subscriptions.push_back(std::make_pair("command", CMMDVMHost::onCommand));
|
||||
|
||||
if (m_conf.getRemoteControlEnabled())
|
||||
subscriptions.push_back(std::make_pair("command", CMMDVMHost::onCommand));
|
||||
|
||||
m_mqtt = new CMQTTConnection(m_conf.getMQTTHost(), m_conf.getMQTTPort(), m_conf.getMQTTName(), subscriptions, m_conf.getMQTTKeepalive());
|
||||
ret = m_mqtt->open();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue