From fbcb2cc74fff6130472e33cdf7a7537efd1c2ee1 Mon Sep 17 00:00:00 2001 From: KWH Date: Wed, 6 Aug 2025 20:00:17 +0800 Subject: [PATCH] =?UTF-8?q?*)=20=E6=B7=B1=E6=8B=B7=E8=B4=9DQByteArray?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=9D=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 22830bb..e8a9c1e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -309,8 +309,10 @@ void MainWindow::on_pushButton_10_clicked() { switch (ui->comboBox->currentIndex()) { case 0: { - revDatatmp = dacHandler->getDACReg(drvUart,tmp); - onLogPrint(" [UART] <-- Read Reg data is :"+revDatatmp.toHex(' ')); + QByteArray ba = dacHandler->getDACReg(drvUart,tmp); + revDatatmp = ba; + revDatatmp.detach(); + onLogPrint(" [UART] <-- Read Reg data is :"+ ba.toHex(' ')); break; }