Browse Source

store workflow strings correctly in flash page

Thomas Buck 11 months ago
parent
commit
5fb818951b
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      include/workflow.h

+ 3
- 2
include/workflow.h View File

@@ -21,6 +21,7 @@
21 21
 
22 22
 #include <stdint.h>
23 23
 
24
+#define WF_MAX_STR_LEN 10
24 25
 #define WF_MAX_STEPS 42
25 26
 #define WF_MAX_FLOWS 6
26 27
 
@@ -37,8 +38,8 @@ struct wf_step {
37 38
 };
38 39
 
39 40
 struct workflow {
40
-    const char *name;
41
-    const char *author;
41
+    char name[WF_MAX_STR_LEN];
42
+    char author[WF_MAX_STR_LEN];
42 43
     struct wf_step steps[WF_MAX_STEPS];
43 44
     uint16_t count;
44 45
 };

Loading…
Cancel
Save