*/
uint32_t RequestBuildDate(void);
+ /*!
+ * @return The persisted build date.
+ */
+ uint32_t GetPersistedBuildDate(void) const { return m_iBuildDate; };
+
private:
/*!
* @brief Reads all settings from the eeprom.
uint16_t CUSBCECAdapterCommunication::GetFirmwareVersion(void)
{
- return IsOpen() ? m_commands->GetFirmwareVersion() : CEC_FW_VERSION_UNKNOWN;
+ return m_commands ? m_commands->GetFirmwareVersion() : CEC_FW_VERSION_UNKNOWN;
}
uint32_t CUSBCECAdapterCommunication::GetFirmwareBuildDate(void)
{
- return IsOpen() ? m_commands->RequestBuildDate() : 0;
+ return IsOpen() ? m_commands->RequestBuildDate() : m_commands ? m_commands->GetPersistedBuildDate() : 0;
}
bool CUSBCECAdapterCommunication::IsRunningLatestFirmware(void)