static void decode_bind_packet(uint8_t *packet) { if ((packet[14] & V2X2_FLAG_BIND) == V2X2_FLAG_BIND) { // Fill out rf_channels with bound protocol parameters v2x2_set_tx_id(&packet[7]); bind_phase = PHASE_BOUND; rx_timeout = 1000L; // find the channel as fast as possible } }
static void decode_bind_packet(uint8_t *packet) { switch (tryprotocol) { case PROTO_V2X2: if ((packet[14] & V2X2_FLAG_BIND) == V2X2_FLAG_BIND) { // Fill out usersettings with bound protocol parameters v2x2_set_tx_id(&packet[7]); // Read usersettings into current values bind_phase = PHASE_BOUND; set_bound(); } break; } }