添加广播方式升级
This commit is contained in:
@@ -16,14 +16,14 @@ typedef std::function<void(myarray data)> prot_m4_cb;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
prot_m4_cb fun;
|
||||
QList<prot_m4_cb> funs;
|
||||
myarray cmd;
|
||||
} HandleM4_def;
|
||||
|
||||
class prot_m4 : public QObject
|
||||
{
|
||||
public:
|
||||
prot_m4() { if_ = nullptr; }
|
||||
prot_m4() { if_ = nullptr;wait=0; }
|
||||
~prot_m4() {}
|
||||
void init();
|
||||
bool set_irq_fun(prot_m4_cb fun, myarray data);
|
||||
@@ -40,6 +40,8 @@ protected:
|
||||
Codec *codec_;
|
||||
QThread thread;
|
||||
myarray recv_data;
|
||||
int wait;
|
||||
QList<myarray> send_list;
|
||||
};
|
||||
|
||||
prot_m4 *protM4();
|
||||
|
Reference in New Issue
Block a user