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

Method StartDevice

executor/lib/node_dev_driver.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool NodeDriver::StartDevice(Device* device)
59{
60 NodeDevice* node_dev = dynamic_cast<NodeDevice*>(device);
61
62 if(node_dev->dev_status == kDevInvalid || node_dev->dev_status == kDevRemoved)
63 return false;
64
65 if(!StartDev(node_dev))
66 return false;
67
68 node_dev->dev_status = kDevNormal;
69
70 return true;
71}
72
73bool NodeDriver::StopDevice(Device* device)
74{

Callers 1

StartMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected