File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ extern void loop(void);
343
343
} // extern "C"
344
344
// #include "Tone.h"
345
345
// #include "WMath.h"
346
- // #include "Uart.h"
346
+ #include " Uart.h"
347
347
#endif // __cplusplus
348
348
349
349
// #include "Print.h"
Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ class Uart : public HardwareSerial {
94
94
void IrqHandler (void );
95
95
96
96
private:
97
- RingBuffer _rx_buffer;
97
+ static constexpr size_t BUF_LENGTH = 512 ;
98
+ RingBufferN<BUF_LENGTH> _rx_buffer;
99
+ bool serial_ready = false ;
98
100
};
101
+
99
102
extern Uart Serial;
100
103
extern Uart Serial1;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ int main(void) {
49
49
setup ();
50
50
while (1 ) {
51
51
loop ();
52
- // ::serialEventRun();
52
+ ::serialEventRun ();
53
53
}
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments