Add sandbox_c cmake project + ccache workflow for pool testing
Build RPi image / build (push) Successful in 10s
Sandbox - ephemeral runner + shared cache / cargo (push) Successful in 1m27s
Sandbox - cmake + ccache on the pool / build (push) Successful in 10s

This commit is contained in:
druppy committed 2026-10-24 22:54:55 +02:00
1 parent fb253f9b27
commit ba41deb9ec
9 files changed
+160

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#include "temperature.h"
#include <stdio.h>
int format_reading(const Reading *in, char *buf, size_t len) {
if (!in || !buf || len < 16) return 1;
int n = snprintf(buf, len, "{\"sensor\":\"%s\",\"celsius\":%.2f}", in->sensor, in->celsius);
return (n < 0 || (size_t)n >= len) ? 2 : 0;
}