diff --git a/devices/perseus/deviceperseusscan.cpp b/devices/perseus/deviceperseusscan.cpp index c74412b0e..b7be8528b 100644 --- a/devices/perseus/deviceperseusscan.cpp +++ b/devices/perseus/deviceperseusscan.cpp @@ -35,12 +35,12 @@ bool DevicePerseusScan::scan(int nbDevices) for (int deviceIndex = 0; deviceIndex < nbDevices; deviceIndex++) { - if ((descr = perseus_open(deviceIndex)) == 0) + if ((descr = perseus_open(deviceIndex)) == 0) { - qCritical("DevicePerseusScan::scan: device #%d open error: %s", deviceIndex, perseus_errorstr()); - perseus_close(descr); - continue; - } + qCritical("DevicePerseusScan::scan: device #%d open error: %s", deviceIndex, perseus_errorstr()); + perseus_close(descr); + continue; + } if (perseus_firmware_download(descr, 0) < 0) {