类析构时取消其设置的回调函数
This commit is contained in:
@@ -76,6 +76,7 @@ prot_m4 *protM4()
|
||||
|
||||
bool prot_m4::set_irq_fun(prot_m4_cb fun, myarray data)
|
||||
{
|
||||
if(fun==nullptr) return false;
|
||||
int left;
|
||||
for (int i = 0; i < funs.size(); i++)
|
||||
{
|
||||
|
@@ -26,7 +26,7 @@ void prot_slave::init()
|
||||
if((broadcast_!=nullptr)&&(broadcast_->busy)){
|
||||
broadcast_->addr_response|=1<<(src-1);
|
||||
if(broadcast_->check_response()==true)
|
||||
broadcast_->dolater(cmd,data);
|
||||
broadcast_->dolater(broadcast_->cmd,data);
|
||||
}else{
|
||||
handle=slaves[src-1];
|
||||
if(handle!=nullptr){
|
||||
|
Reference in New Issue
Block a user