diff options
Diffstat (limited to 'apps/plugins/wavrecord.c')
| -rw-r--r-- | apps/plugins/wavrecord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c index ee55763..b509212 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c @@ -3415,7 +3415,7 @@ void rec_tick(void) void rec_tick_enable(bool on) { - int oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL); + int oldlevel = disable_irq_save(); if(on) { @@ -3431,7 +3431,7 @@ void rec_tick_enable(bool on) IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ } - set_irq_level(oldlevel); + restore_irq(oldlevel); } void hijack_interrupts(bool on) |