| 7526 | } |
| 7527 | } |
| 7528 | bool 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 | |
| 7550 | void Driver::SubmitEventMsg(EventMsg *event) { |
| 7551 | LockGuard LG(m_eventMutex); |
no test coverage detected