diff --git a/src/dialogs/WriteCommandsDialogs.cpp b/src/dialogs/WriteCommandsDialogs.cpp index 8b5ea723..5c388ff2 100644 --- a/src/dialogs/WriteCommandsDialogs.cpp +++ b/src/dialogs/WriteCommandsDialogs.cpp @@ -84,9 +84,9 @@ void DuplicateFromOffsetDialog::refresh() // Add space every two characters for word wrap in hex sequence QRegularExpression re{"(.{2})"}; - QString bytes = Core()->cmd(QString("p8 %1 @ %2") - .arg(QString::number(getNBytes())) - .arg(QString::number(offestFrom))) + QString bytes = Core()->cmdRawAt(QString("p8 %1") + .arg(QString::number(getNBytes())), + offestFrom) .replace(re, "\\1 "); ui->bytesLabel->setText(bytes.trimmed());