Browse Source

Mitigate radio regulation risk of wrong frequency use in hardcoded values.

master
parent
commit
dd7d78a7f0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      firmware/SendcommPeer2P/src/main.c

+ 6
- 1
firmware/SendcommPeer2P/src/main.c View File

@@ -83,7 +83,7 @@ static void init(void)

void print_menu(void)
{
printf("\r\n-- Sendcomm LoRa P2P Sample Application --\r\n") ;
printf("\r\n-- Sendcomm LoRa P2P Sample Application (NNN MHz) --\r\n") ;
printf("- Press user (white) button to transmit a counter [%d]\r\n", buttonCounter) ;
printf("- Type any character to transmit over LoRa Radio\r\n") ;
}
@@ -196,8 +196,13 @@ void serial_data_handler(void)
/* Configure LoRa Radio for P2P */
static void configure_radio(void)
{
#if true
KRASH_ME // Forces attention placed on a hard coded frequency risk
// Remember to replace text output banner (NNN MHz) in main
LORAWAN_Reset(ISM_EU868) ; // Refer to stack_common.h for the definition of IsmBand_t
// Cmd mac reset 868 - reset the LoRaWAN stack and initialize it with the parameters of the selected ISM band
LORAWAN_Reset(ISM_EU868) ; // Refer to stack_common.h for the definition of IsmBand_t
#endif // #if true

// Cmd mac pause
uint32_t time_ms = LORAWAN_Pause() ;


Loading…
Cancel
Save