File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
firmware/nRF51/tag-proximity Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ extern uint8_t hibernate;
30
30
extern uint16_t status_flags ;
31
31
extern uint8_t boot_count ;
32
32
extern uint32_t reset_reason ;
33
+ extern uint8_t uart_enabled ;
33
34
34
35
extern void blink (uint8_t times );
35
36
extern void blink_fast (uint8_t times );
Original file line number Diff line number Diff line change @@ -561,7 +561,8 @@ uint8_t flash_setup_logging(uint32_t uid)
561
561
if (nrf_gpio_pin_read (CONFIG_SWITCH_PIN ) && blink_wait_release () > 1000 )
562
562
{
563
563
blink_fast (5 );
564
- debug_printf ("\n\rERASING FLASH\n\r" );
564
+ if (uart_enabled )
565
+ debug_printf ("\n\rERASING FLASH\n\r" );
565
566
flash_erase_chip ();
566
567
flash_wait_ready (1 );
567
568
@@ -602,7 +603,8 @@ uint8_t flash_setup_logging(uint32_t uid)
602
603
#endif
603
604
604
605
log_running = 1 ;
605
- debug_printf ("\n\rLogging starts at block %i of %i\n\r" , current_block , flash_log_last_block );
606
+ if (uart_enabled )
607
+ debug_printf ("\n\rLogging starts at block %i of %i\n\r" , current_block , flash_log_last_block );
606
608
607
609
return 0 ;
608
610
}
You can’t perform that action at this time.
0 commit comments