MCPcopy Create free account
hub / github.com/OAID/Tengine / StopDevice

Method StopDevice

executor/lib/node_dev_driver.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool NodeDriver::StopDevice(Device* device)
74{
75 NodeDevice* node_dev = dynamic_cast<NodeDevice*>(device);
76
77 if(node_dev->dev_status == kDevStopped)
78 return true;
79
80 if(!StopDev(node_dev))
81 return false;
82
83 node_dev->dev_status = kDevStopped;
84
85 return true;
86}
87
88dev_status_t NodeDriver::GetDeviceStatus(Device* device)
89{

Callers 1

StopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected