修改ledset找卡

This commit is contained in:
gangphon 2023-03-20 13:41:36 +08:00
parent b8d679984c
commit a6c18c0549

View File

@ -1,6 +1,7 @@
#include "pcaprethread.h" #include "pcaprethread.h"
PcapReThread::PcapReThread(pcap_t *pcap) : pcap(pcap) { PcapReThread::PcapReThread(pcap_t *pcap) : pcap(pcap) {
qRegisterMetaType<Resp>("Resp");
connect(this, &QThread::finished, this, &QThread::deleteLater); connect(this, &QThread::finished, this, &QThread::deleteLater);
connect(this, &PcapReThread::onMsg, this, [](Resp resp, const QByteArray data) { connect(this, &PcapReThread::onMsg, this, [](Resp resp, const QByteArray data) {
resp.callback(data); resp.callback(data);