diff --git a/src/avr/irq.h b/src/avr/irq.h index 349c4c434..63a1018bb 100644 --- a/src/avr/irq.h +++ b/src/avr/irq.h @@ -29,7 +29,7 @@ static inline void irq_restore(irqstatus_t flag) { } static inline void irq_wait(void) { - asm("sei\n sleep\n cli" : : : "memory"); + asm("sei\n nop\n cli" : : : "memory"); } static inline void irq_poll(void) { diff --git a/src/avr/main.c b/src/avr/main.c index 9737c2be4..2655d307f 100644 --- a/src/avr/main.c +++ b/src/avr/main.c @@ -52,14 +52,6 @@ prescaler_init(void) } DECL_INIT(prescaler_init); -// The "sleep" instruction should cause the processor to enter "idle mode" -void -sleep_init(void) -{ - SMCR = 0x01; -} -DECL_INIT(sleep_init); - // Optimized crc16_ccitt for the avr processor uint16_t crc16_ccitt(char *buf, uint8_t len)