MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / downloadMFSRevision

Method downloadMFSRevision

cpp/src/Driver.cpp:7528–7548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7526 }
7527}
7528bool Driver::downloadMFSRevision
7529(
7530)
7531{
7532 if (m_mfs->getRevision() <= 0) {
7533 Log::Write(LogLevel_Warning, "ManufacturerSpecific Revision is 0. Not Updating");
7534 Notification* notification = new Notification( Notification::Type_UserAlerts );
7535 notification->SetUserAlertNofification(Notification::Alert_ConfigFileDownloadFailed);
7536 QueueNotification( notification );
7537 return false;
7538 }
7539 if (m_mfs->getRevision() >= m_mfs->getLatestRevision()) {
7540 Log::Write(LogLevel_Warning, "ManufacturerSpecific Revision %d is equal to or greater than current revision %d", m_mfs->getRevision(), m_mfs->getLatestRevision());
7541 Notification* notification = new Notification( Notification::Type_UserAlerts );
7542 notification->SetUserAlertNofification(Notification::Alert_ConfigFileDownloadFailed);
7543 QueueNotification( notification );
7544 return false;
7545 }
7546 m_mfs->updateMFSConfigFile(this);
7547 return true;
7548}
7549
7550void Driver::SubmitEventMsg(EventMsg *event) {
7551 LockGuard LG(m_eventMutex);

Callers 1

Calls 2

WriteFunction · 0.85
updateMFSConfigFileMethod · 0.80

Tested by

no test coverage detected