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 ee557633a4..b509212239 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c | |||
@@ -3415,7 +3415,7 @@ void rec_tick(void) | |||
3415 | 3415 | ||
3416 | void rec_tick_enable(bool on) | 3416 | void rec_tick_enable(bool on) |
3417 | { | 3417 | { |
3418 | int oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL); | 3418 | int oldlevel = disable_irq_save(); |
3419 | 3419 | ||
3420 | if(on) | 3420 | if(on) |
3421 | { | 3421 | { |
@@ -3431,7 +3431,7 @@ void rec_tick_enable(bool on) | |||
3431 | IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ | 3431 | IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ |
3432 | } | 3432 | } |
3433 | 3433 | ||
3434 | set_irq_level(oldlevel); | 3434 | restore_irq(oldlevel); |
3435 | } | 3435 | } |
3436 | 3436 | ||
3437 | void hijack_interrupts(bool on) | 3437 | void hijack_interrupts(bool on) |