We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a07c23b commit 7af2301Copy full SHA for 7af2301
Multiprotocol/JIABAILE_nrf24l01.ino
@@ -35,12 +35,12 @@ enum {
35
static uint8_t __attribute__((unused)) JIABAILE_channel(uint8_t num)
36
{
37
uint8_t val=convert_channel_16b_limit(num,0,100);
38
- if(val>50)
+ if(val > 50+num)
39
40
packet[3] |= 0x01;
41
return val-50;
42
}
43
- if(val<50)
+ if(val < 50-num)
44
45
packet[3] |= 0x02;
46
return 50-val;
@@ -77,7 +77,7 @@ static void __attribute__((unused)) JIABAILE_send_packet()
77
XN297_SetPower();
78
XN297_SetTxRxMode(TX_EN);
79
XN297_WritePayload(packet, JIABAILE_PAYLOAD_SIZE);
80
- #ifdef ADEBUG_SERIAL
+ #ifdef DEBUG_SERIAL
81
debug("H%d RF%d",hopping_frequency_no,hopping_frequency[hopping_frequency_no]);
82
for(uint8_t i=0; i < JIABAILE_PAYLOAD_SIZE; i++)
83
debug(" %02X", packet[i]);
0 commit comments