浏览代码

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

master
父节点
当前提交
dd7d78a7f0
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. +6
    -1
      firmware/SendcommPeer2P/src/main.c

+ 6
- 1
firmware/SendcommPeer2P/src/main.c 查看文件

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


void print_menu(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("- Press user (white) button to transmit a counter [%d]\r\n", buttonCounter) ;
printf("- Type any character to transmit over LoRa Radio\r\n") ; 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 */ /* Configure LoRa Radio for P2P */
static void configure_radio(void) 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 // 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 LORAWAN_Reset(ISM_EU868) ; // Refer to stack_common.h for the definition of IsmBand_t
#endif // #if true


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


正在加载...
取消
保存