Preview error handle

This commit is contained in:
Krad
2022-06-02 14:01:16 +08:00
parent b34a2d965c
commit 53c92055a6
4 changed files with 16 additions and 4 deletions

View File

@@ -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