aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 8b33e2c..74e1997 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,7 @@
#pragma once
#include "ws2812.h"
+#include "led.h"
#include <stdbool.h>
#include <stdint.h>
@@ -13,7 +14,7 @@
#define INFO(...) stdio_log(LOG_INFO, "INFO : " __VA_ARGS__)
#define DEBUG(...) stdio_log(LOG_DEBUG, "DEBUG: " __VA_ARGS__)
-#define PANIC(...) blink_panic(200, WS2812_U32RGB(255, 0, 0), __VA_ARGS__);
+#define PANIC(...) blink_panic(200, HARD_RED, __VA_ARGS__);
#define ASSERT(cond) do { \
if (!(cond)) PANIC("Assertion failed: (%s) in %s:%i", \
#cond, __FILE__, __LINE__); \
@@ -36,4 +37,5 @@ void stdio_log(int loglevel, const char *fmtstr, ...);
void blink_panic(uint32_t blink_ms, uint32_t rgb, const char *fmtstr, ...);
+extern char warnlog[];
extern int loglevel;