refactor(channel):init channel need model

This commit is contained in:
kalman
2018-12-22 16:17:47 +08:00
parent 618f2c02e5
commit 5800e1c6c8
8 changed files with 37 additions and 27 deletions

View File

@@ -85,7 +85,7 @@ Device::Device(const Model &model, std::shared_ptr<uvc::device> device)
model_(model),
device_(device),
streams_(nullptr),
channels_(std::make_shared<Channels>(device)),
channels_(std::make_shared<Channels>(model_, device)),
motions_(std::make_shared<Motions>(channels_)) {
VLOG(2) << __func__;
ReadAllInfos();