Preview error handle
This commit is contained in:
@@ -164,7 +164,9 @@ void DeviceManager::initDevice() {
|
||||
if (inf.status == SCANNING) {
|
||||
qDebug() << "Preview data reader read start!";
|
||||
const char* data = GetPreviewData();
|
||||
if (!data)continue;
|
||||
if (!data){
|
||||
continue;
|
||||
}
|
||||
qDebug() << "Preview data reader read end!";
|
||||
QByteArray bytes = QByteArray::fromRawData(data, 140 * 140);
|
||||
//double check
|
||||
|
||||
Reference in New Issue
Block a user