summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'pressure_control/firmware/util.h')
-rw-r--r--pressure_control/firmware/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pressure_control/firmware/util.h b/pressure_control/firmware/util.h
index 992df0e..fbfaa76 100644
--- a/pressure_control/firmware/util.h
+++ b/pressure_control/firmware/util.h
@@ -78,7 +78,8 @@ static inline void irq_restore(uint8_t sreg_flags)
SREG = sreg_flags;
}
-#define irqs_disabled() (!(SREG & (1 << SREG_I)))
+#define __irqs_disabled(sreg) (!(sreg & (1 << SREG_I)))
+#define irqs_disabled() __irqs_disabled(SREG)
uint8_t crc8_block_update(uint8_t crc, const void *data, uint8_t size);
bues.ch cgit interface