Browse Source

store workflow strings correctly in flash page

Thomas Buck 1 year 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
 
21
 
22
 #include <stdint.h>
22
 #include <stdint.h>
23
 
23
 
24
+#define WF_MAX_STR_LEN 10
24
 #define WF_MAX_STEPS 42
25
 #define WF_MAX_STEPS 42
25
 #define WF_MAX_FLOWS 6
26
 #define WF_MAX_FLOWS 6
26
 
27
 
37
 };
38
 };
38
 
39
 
39
 struct workflow {
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
     struct wf_step steps[WF_MAX_STEPS];
43
     struct wf_step steps[WF_MAX_STEPS];
43
     uint16_t count;
44
     uint16_t count;
44
 };
45
 };

Loading…
Cancel
Save