mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-06-14 20:14:27 +02:00
Allow disabling subband seletion
This commit is contained in:
parent
ba908c0b93
commit
7fa43dbbdb
@ -203,7 +203,7 @@ public:
|
||||
*
|
||||
* If not set, it defaults to sub-band 2 as defined by TTN.
|
||||
*
|
||||
* @param band band (between 1 and 8)
|
||||
* @param band band (0 for all bands, or value between 1 and 8)
|
||||
*/
|
||||
void setSubband(int band) { ttn_set_subband(band); }
|
||||
|
||||
|
@ -198,7 +198,7 @@ void ttn_configure_pins(spi_host_device_t spi_host, uint8_t nss, uint8_t rxtx, u
|
||||
*
|
||||
* If not set, it defaults to sub-band 2 as defined by TTN.
|
||||
*
|
||||
* @param band band (between 1 and 8)
|
||||
* @param band band (0 for all bands, or value between 1 and 8)
|
||||
*/
|
||||
void ttn_set_subband(int band);
|
||||
|
||||
|
@ -509,7 +509,7 @@ void hal_esp32_stop_lmic_task(void)
|
||||
|
||||
static hal_failure_handler_t* custom_hal_failure_handler = NULL;
|
||||
|
||||
void hal_set_failure_handler(const hal_failure_handler_t* const handler)
|
||||
void hal_set_failure_handler(hal_failure_handler_t* const handler)
|
||||
{
|
||||
custom_hal_failure_handler = handler;
|
||||
}
|
||||
|
@ -133,7 +133,8 @@ void hal_failed (const char *file, u2_t line);
|
||||
* set a custom hal failure handler routine. The default behaviour, defined in
|
||||
* hal_failed(), is to halt by looping infintely.
|
||||
*/
|
||||
void hal_set_failure_handler(const hal_failure_handler_t* const);
|
||||
void hal_set_failure_handler(hal_failure_handler_t* const);
|
||||
// ttn-esp32: too much const
|
||||
|
||||
/*
|
||||
* get the calibration value for radio_rssi
|
||||
|
@ -211,7 +211,8 @@ bool join_core()
|
||||
waiting_reason = TTN_WAITING_FOR_JOIN;
|
||||
|
||||
#if defined(CFG_us915) || defined(CFG_au915)
|
||||
LMIC_selectSubBand(subband - 1);
|
||||
if (subband != 0)
|
||||
LMIC_selectSubBand(subband - 1);
|
||||
#endif
|
||||
|
||||
LMIC_startJoining();
|
||||
|
@ -50,7 +50,7 @@ typedef struct {
|
||||
} TTNLogMessage;
|
||||
|
||||
static void loggingTask(void* param);
|
||||
static void logFatal(const char* file, uint16_t line);
|
||||
static void logFatal(const char* const file, const uint16_t line);
|
||||
|
||||
static void printMessage(TTNLogMessage* log);
|
||||
static void printFatalError(TTNLogMessage* log);
|
||||
|
Loading…
Reference in New Issue
Block a user