contain lorawan with serial_rx enabled
Dependencies: pulga-lorawan-drv SPI_MX25R Si1133 BME280
serial_cmds.cpp@63:4ec1808fb547, 2021-02-26 (annotated)
- Committer:
- ruschigo
- Date:
- Fri Feb 26 18:11:06 2021 +0000
- Revision:
- 63:4ec1808fb547
- Parent:
- 62:89df9529dbb0
- Child:
- 64:ed68ddac6360
insert serial rx by interrupt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruschigo | 62:89df9529dbb0 | 1 | #include "serial.h" |
ruschigo | 62:89df9529dbb0 | 2 | |
ruschigo | 62:89df9529dbb0 | 3 | bool SerialCommandRun(const char *msg) |
ruschigo | 62:89df9529dbb0 | 4 | { |
ruschigo | 62:89df9529dbb0 | 5 | char Option = msg[1]; /// recebo opcao |
ruschigo | 62:89df9529dbb0 | 6 | |
ruschigo | 62:89df9529dbb0 | 7 | switch (Option) |
ruschigo | 62:89df9529dbb0 | 8 | { |
ruschigo | 62:89df9529dbb0 | 9 | |
ruschigo | 62:89df9529dbb0 | 10 | case CMD_PRINT_LAST_GPS: |
ruschigo | 63:4ec1808fb547 | 11 | int local_lat, local_log; |
ruschigo | 63:4ec1808fb547 | 12 | //gps_get_lat_lon(&local_lat, &local_log); |
ruschigo | 63:4ec1808fb547 | 13 | //get_latitude |
ruschigo | 63:4ec1808fb547 | 14 | pc.printf("<g%d,%d\n>", get_latitude(), get_longitude()); |
ruschigo | 62:89df9529dbb0 | 15 | break; |
ruschigo | 62:89df9529dbb0 | 16 | |
ruschigo | 62:89df9529dbb0 | 17 | |
ruschigo | 62:89df9529dbb0 | 18 | default: |
ruschigo | 62:89df9529dbb0 | 19 | break; |
ruschigo | 62:89df9529dbb0 | 20 | } |
ruschigo | 62:89df9529dbb0 | 21 | |
ruschigo | 62:89df9529dbb0 | 22 | return true; |
ruschigo | 62:89df9529dbb0 | 23 | } |