File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 87
87
#define TIMER5B 17
88
88
#define TIMER5C 18
89
89
90
- #include "include/io.h"
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
#include " ArduinoDefines.h"
3
+ #include < avr/io.h>
3
4
#include " WString.h"
4
5
5
6
#define MOCK_PINS_COUNT 256
@@ -49,14 +50,21 @@ class GodmodeState {
49
50
seed = 1 ;
50
51
}
51
52
52
- GodmodeState () {
53
+ int serialPorts () {
54
+ return NUM_SERIAL_PORTS;
55
+ }
56
+
57
+
58
+ GodmodeState ()
59
+ {
53
60
reset ();
54
- for (int i = 0 ; i < NUM_SERIAL_PORTS; ++i) {
55
- serialPort[i].dataIn = " " ;
56
- serialPort[i].dataOut = " " ;
61
+ for (int i = 0 ; i < serialPorts (); ++i)
62
+ {
63
+ serialPort[i].dataIn = " " ;
64
+ serialPort[i].dataOut = " " ;
57
65
serialPort[i].readDelayMicros = 0 ;
58
66
}
59
- }
67
+ }
60
68
61
69
};
62
70
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class String: public string
23
23
24
24
private:
25
25
static const char * digit (int val) {
26
- const char * bank = " 0123456789ABCDEF" ;
26
+ static const char * bank = " 0123456789ABCDEF" ;
27
27
return bank + val;
28
28
}
29
29
You can’t perform that action at this time.
0 commit comments