Browse Source

Malloc'ed AppCore

master
Robin Thoni 4 years ago
parent
commit
5889d5ea2d
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      main.ino

+ 3
- 3
main.ino View File

@@ -1,14 +1,14 @@
1 1
 #include "AppCore.h"
2 2
 #include <OneWire.h>
3 3
 
4
-AppCore g_appCore;
4
+auto g_pAppCore = new AppCore();
5 5
 
6 6
 void setup()
7 7
 {
8
-    g_appCore.setup();
8
+    g_pAppCore->setup();
9 9
 }
10 10
 
11 11
 void loop()
12 12
 {
13
-    g_appCore.loop();
13
+    g_pAppCore->loop();
14 14
 }

Loading…
Cancel
Save