*) 深拷贝QByteArray,避坑。
This commit is contained in:
parent
3b2d14508b
commit
fbcb2cc74f
@ -309,8 +309,10 @@ void MainWindow::on_pushButton_10_clicked() {
|
|||||||
switch (ui->comboBox->currentIndex()) {
|
switch (ui->comboBox->currentIndex()) {
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
revDatatmp = dacHandler->getDACReg(drvUart,tmp);
|
QByteArray ba = dacHandler->getDACReg(drvUart,tmp);
|
||||||
onLogPrint(" [UART] <-- Read Reg data is :"+revDatatmp.toHex(' '));
|
revDatatmp = ba;
|
||||||
|
revDatatmp.detach();
|
||||||
|
onLogPrint(" [UART] <-- Read Reg data is :"+ ba.toHex(' '));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user