Rev 783 | Rev 800 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 783 | Rev 787 | ||
---|---|---|---|
Line 336... | Line 336... | ||
336 | 336 | ||
337 | 337 | ||
Line -... | Line 338... | ||
- | 338 | // clear serial screen |
|
- | 339 | //usart1_puts("\x1B[2J\x1B[H"); |
|
- | 340 | ||
338 | // clear serial screen |
341 | #if !FCONLY |
339 | //usart1_puts("\x1B[2J\x1B[H"); |
342 | usart1_request_nc_uart(); |
340 | 343 | #endif |
|
341 | 344 | ||
342 | while (1) { |
345 | while (1) { |
343 | // in case SPI is ready and there is nothing to send right now |
346 | // in case SPI is ready and there is nothing to send right now |
Line 439... | Line 442... | ||
439 | // handle keypress |
442 | // handle keypress |
440 | if (s1_pressed()) { |
443 | if (s1_pressed()) { |
441 | config_menu(); |
444 | config_menu(); |
442 | } |
445 | } |
443 | if (seconds_since_last_data > 0) { |
446 | if (seconds_since_last_data > 0) { |
444 | #if !FCONLY |
- | |
445 | usart1_request_nc_uart(); |
- | |
446 | #endif |
- | |
447 | - | ||
448 | usart1_EnableTXD(); |
447 | usart1_EnableTXD(); |
449 | //usart1_puts_pgm(PSTR("zu alt\r\n")); |
448 | //usart1_puts_pgm(PSTR("zu alt\r\n")); |
450 | #if FCONLY |
449 | #if FCONLY |
451 | // request data ever 100ms from FC; |
450 | // request data ever 100ms from FC; |
452 | //usart1_request_mk_data(0, 'd', 100); |
451 | //usart1_request_mk_data(0, 'd', 100); |