extern DECLSPEC bool cec_start_bootloader(void);
/*!
- * @brief Power off connected CEC capable devices.
- * @param address The logical address to power off.
- * @return True when the command was sent succesfully, false otherwise.
+ * @depcrecated Use cec_standby_devices() instead
*/
#ifdef __cplusplus
extern DECLSPEC bool cec_power_off_devices(CEC::cec_logical_address address = CEC::CECDEVICE_BROADCAST);
* @return True when the command was sent succesfully, false otherwise.
*/
#ifdef __cplusplus
-extern DECLSPEC bool cec_power_on_devices(CEC::cec_logical_address address = CEC::CECDEVICE_BROADCAST);
+extern DECLSPEC bool cec_power_on_devices(CEC::cec_logical_address address = CEC::CECDEVICE_TV);
#else
-extern DECLSPEC bool cec_power_on_devices(cec_logical_address address = CECDEVICE_BROADCAST);
+extern DECLSPEC bool cec_power_on_devices(cec_logical_address address = CECDEVICE_TV);
#endif
/*!
virtual bool StartBootloader(void) = 0;
/*!
- * @see cec_power_off_devices
+ * @depcrecated Use StandbyDevices() instead
*/
virtual bool PowerOffDevices(cec_logical_address address = CECDEVICE_BROADCAST) = 0;
bool CCECParser::PowerOffDevices(cec_logical_address address /* = CECDEVICE_BROADCAST */)
{
- if (!m_bRunning)
- return false;
-
- CStdString strLog;
- strLog.Format("powering off devices with logical address %d", (int8_t)address);
- AddLog(CEC_LOG_DEBUG, strLog.c_str());
- cec_frame frame;
- frame.push_back(GetSourceDestination(address));
- frame.push_back(CEC_OPCODE_STANDBY);
- return Transmit(frame);
+ return StandbyDevices(address);
}
-bool CCECParser::PowerOnDevices(cec_logical_address address /* = CECDEVICE_BROADCAST */)
+bool CCECParser::PowerOnDevices(cec_logical_address address /* = CECDEVICE_TV */)
{
if (!m_bRunning)
return false;
virtual bool Ping(void);
virtual bool StartBootloader(void);
virtual bool PowerOffDevices(cec_logical_address address = CECDEVICE_BROADCAST);
- virtual bool PowerOnDevices(cec_logical_address address = CECDEVICE_BROADCAST);
+ virtual bool PowerOnDevices(cec_logical_address address = CECDEVICE_TV);
virtual bool StandbyDevices(cec_logical_address address = CECDEVICE_BROADCAST);
virtual bool SetActiveView(void);
virtual bool SetInactiveView(void);