----------------------------------------------------------------------------- Reset controller and erase all node information -----------------------------------------------------------------------------
| 4016 | // Reset controller and erase all node information |
| 4017 | //----------------------------------------------------------------------------- |
| 4018 | void Manager::ResetController |
| 4019 | ( |
| 4020 | uint32 const _homeId |
| 4021 | ) |
| 4022 | { |
| 4023 | if( Driver* driver = GetDriver( _homeId ) ) |
| 4024 | { |
| 4025 | Event *event = new Event(); |
| 4026 | driver->ResetController( event ); |
| 4027 | Wait::Single( event ); |
| 4028 | event->Release(); |
| 4029 | string path = driver->GetControllerPath(); |
| 4030 | Driver::ControllerInterface intf = driver->GetControllerInterfaceType(); |
| 4031 | RemoveDriver( path ); |
| 4032 | AddDriver( path, intf ); |
| 4033 | Wait::Multiple( NULL, 0, 500 ); |
| 4034 | } |
| 4035 | OPENZWAVE_DEPRECATED_WARNINGS_OFF; |
| 4036 | RemoveAllScenes( _homeId ); |
| 4037 | OPENZWAVE_DEPRECATED_WARNINGS_ON; |
| 4038 | } |
| 4039 | |
| 4040 | //----------------------------------------------------------------------------- |
| 4041 | // <Manager::SoftReset> |
nothing calls this directly
no test coverage detected