prio = callout_mgr_set_prio(&xbeeboard.intr_cm, XBEE_PRIO);
ret = xbeeapp_send(&ctx, XBEE_TYPE_ATCMD, &msg, foreground);
- callout_mgr_set_prio(&xbeeboard.intr_cm, prio);
+ callout_mgr_restore_prio(&xbeeboard.intr_cm, prio);
return ret;
}
prio = callout_mgr_set_prio(&xbeeboard.intr_cm, XBEE_PRIO);
ret = xbeeapp_send(&ctx, XBEE_TYPE_XMIT, &msg2, foreground);
- callout_mgr_set_prio(&xbeeboard.intr_cm, prio);
+ callout_mgr_restore_prio(&xbeeboard.intr_cm, prio);
return ret;
}
xbee_dev_send('C', NULL);
xbee_dev_send('N', NULL);
xbee_dev_send('\n', NULL);
- callout_mgr_set_prio(&xbeeboard.intr_cm, prio);
+ callout_mgr_restore_prio(&xbeeboard.intr_cm, prio);
xbee_raw = 0;
rdline_newline(&xbeeboard.rdl,
xbeeboard.prompt);