GPIO allocation errors raise events and print to log

This commit is contained in:
Jaakko Haakana 2025-06-29 22:29:08 +03:00
parent e3de4e546c
commit 824cee1505
7 changed files with 22 additions and 18 deletions

View file

@ -1,5 +1,6 @@
#include "events_html.h"
#include "../../datalayer/datalayer.h"
#include "../../devboard/utils/logging.h"
const char EVENTS_HTML_START[] = R"=====(
<style>body{background-color:#000;color:#fff}.event-log{display:flex;flex-direction:column}.event{display:flex;flex-wrap:wrap;border:1px solid #fff;padding:10px}.event>div{flex:1;min-width:100px;max-width:90%;word-break:break-word}</style><div style="background-color:#303e47;padding:10px;margin-bottom:10px;border-radius:25px"><div class="event-log"><div class="event" style="background-color:#1e2c33;font-weight:700"><div>Event Type</div><div>Severity</div><div>Last Event</div><div>Count</div><div>Data</div><div>Message</div></div>