Bluetooth hc05 library
Diff: hc05.cpp
- Revision:
- 9:a8a96ce56d6e
- Parent:
- 8:cfdf0583ef6a
- Child:
- 10:2e1538dc2e1a
--- a/hc05.cpp Sat Aug 18 20:03:13 2018 +0000 +++ b/hc05.cpp Sun Aug 19 07:52:06 2018 +0000 @@ -723,4 +723,19 @@ } return '\0'; +} + +void bt_modul_hc05::flush(UART num) +{ + switch(num) { + case UART1 : + if(t_interrupt == ON) { + at0.clear(); + } + + case UART6 : + if(t_interrupt1 == ON) { + at1.clear(); + } + } } \ No newline at end of file