Skip to content

Commit

Permalink
fix global declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
croghostrider committed Sep 11, 2023
1 parent d23a0b5 commit bc9e188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/main.h
Expand Up @@ -6,7 +6,7 @@
#include "states/proc_start.h"
#include "states/end.h"

SimpleFSM fsm;
extern SimpleFSM fsm;

enum triggers
{
Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
@@ -1,6 +1,8 @@
#include <Arduino.h>
#include "main.h"

SimpleFSM fsm;

State s[] = {
State("start", start_entry, start_ongoing, start_exit),
State("process start", proc_start_entry, proc_start_ongoing, proc_start_exit),
Expand Down

0 comments on commit bc9e188

Please sign in to comment.