diff --git a/crossbow/config.h b/crossbow/config.h index 9706f06..cfb4482 100644 --- a/crossbow/config.h +++ b/crossbow/config.h @@ -5,16 +5,18 @@ * Hardware type. Available types: * ARDUINO_AVR_FEATHER32U4 * ARDUINO_SAMD_FEATHER_M0 + * + * Leave commented for autodetect */ -#define ARDUINO_AVR_FEATHER32U4 +// #define ARDUINO_AVR_FEATHER32U4 /* * TX or RX mode for hardware. Available types: * DEVICE_MODE_TX * DEVICE_MODE_RX */ -// #define DEVICE_MODE_TX -#define DEVICE_MODE_RX +#define DEVICE_MODE_TX +// #define DEVICE_MODE_RX // #define FEATURE_TX_OLED // #define FORCE_TX_WITHOUT_INPUT diff --git a/crossbow/crossbow.ino b/crossbow/crossbow.ino index 6bc9d68..faaacd0 100644 --- a/crossbow/crossbow.ino +++ b/crossbow/crossbow.ino @@ -274,6 +274,14 @@ void setup(void) qsp.debugConfig |= DEBUG_FLAG_LED; #endif + /* + * Setup salt bind key + */ + qsp.bindKey[0] = 0x12; + qsp.bindKey[1] = 0x0a; + qsp.bindKey[2] = 0x36; + qsp.bindKey[3] = 0xa7; + } uint8_t currentSequenceIndex = 0; diff --git a/crossbow/variables.h b/crossbow/variables.h index b1c25bc..cd615f6 100644 --- a/crossbow/variables.h +++ b/crossbow/variables.h @@ -130,6 +130,7 @@ struct RxDeviceState_t { }; struct QspConfiguration_t { + uint8_t bindKey[4] = {0, 0, 0, 0}; uint8_t protocolState = QSP_STATE_IDLE; uint8_t crc = 0; uint8_t payload[QSP_PAYLOAD_LENGTH] = {0};