Update main.cpp
This commit is contained in:
parent
087b206ea1
commit
d884e33ec0
2
main.cpp
2
main.cpp
|
@ -115,8 +115,8 @@ void OnTxTimeout( void )
|
||||||
|
|
||||||
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
|
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
|
||||||
{
|
{
|
||||||
|
( size > BUFFER_SIZE ) ? rxSize = BUFFER_SIZE : rxSize = size;
|
||||||
memcpy( mPacket, payload, size );
|
memcpy( mPacket, payload, size );
|
||||||
rxSize=size;
|
|
||||||
Radio.Sleep();
|
Radio.Sleep();
|
||||||
#ifndef SILENT
|
#ifndef SILENT
|
||||||
Serial.printf("\nReceived packet! (Size %i bytes, RSSI %i, SNR %i)\n", size, rssi, snr);
|
Serial.printf("\nReceived packet! (Size %i bytes, RSSI %i, SNR %i)\n", size, rssi, snr);
|
||||||
|
|
Loading…
Reference in New Issue