diff --git a/Controller.cpp b/Controller.cpp index 981485b..434fae0 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -261,13 +261,6 @@ void CController::ReadAmbeDevices() //wait for up to 40 ms to read anthing from all devices if (rval > 0) { // from the device file descriptor, we'll know if it's dstar or dmr - for (unsigned int i=0 ; iGetFd(), &FdSet)) - { - ReadDevice(dstar_device[i], EAmbeType::dstar); - } - } for (unsigned int i=0 ; iGetFd(), &FdSet)) @@ -276,6 +269,13 @@ void CController::ReadAmbeDevices() std::cout << "Read DMR device " << i << std::endl; } } + for (unsigned int i=0 ; iGetFd(), &FdSet)) + { + ReadDevice(dstar_device[i], EAmbeType::dstar); + } + } } } }