aboutsummaryrefslogtreecommitdiff
path: root/Mussel
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-08 21:58:54 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-08 21:58:54 +0200
commitf1812174d8d3d2feae7639d2c00273c2bb705e48 (patch)
tree22caa07da96187cfecf0dd8caac42404e68b0fe6 /Mussel
parent84ec943d6df66f8ca404d7cc0babf0ddbd3dbcbe (diff)
fix declare struct Vote outside class Mussel
Diffstat (limited to 'Mussel')
-rw-r--r--Mussel/Mussel.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mussel/Mussel.h b/Mussel/Mussel.h
index a098e52..bdc2be8 100644
--- a/Mussel/Mussel.h
+++ b/Mussel/Mussel.h
@@ -27,6 +27,12 @@
// Limited size NOW!! can be transformed into infinite array
#define STACK_SIZE 1000
+struct Vote {
+ String id;
+ unsigned long timestamp;
+ int measure;
+};
+
class Mussel {
public:
@@ -42,12 +48,6 @@ class Mussel {
const uint8_t pin,
const uint8_t type);
- struct Vote {
- String id;
- unsigned long timestamp;
- int measure;
- };
-
void begin();
String desc();
byte read();