Skip to content

Commit

Permalink
update lorawan_oled
Browse files Browse the repository at this point in the history
  • Loading branch information
Heltec-Aaron-Lee committed Mar 13, 2023
1 parent 6c14f83 commit 44aacee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/LoRa/src/LoRaWan_APP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ void __attribute__((weak)) downLinkDataHandle(McpsIndication_t *mcpsIndication)
* containing indication attributes.
*/
int revrssi;
int revsnr;
static void McpsIndication( McpsIndication_t *mcpsIndication )
{
if( mcpsIndication->Status != LORAMAC_EVENT_INFO_STATUS_OK )
Expand All @@ -302,6 +303,7 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
#if defined(CubeCell_BoardPlus)||defined(CubeCell_GPS)
ifDisplayAck=1;
revrssi=mcpsIndication->Rssi;
revsnr=mcpsIndication->Snr;
#endif
#if (LoraWan_RGB==1)
turnOnRGB(COLOR_RECEIVED, 200);
Expand Down Expand Up @@ -771,8 +773,8 @@ void LoRaWanClass::displayAck()
ifDisplayAck--;
display.clear();
display.drawString(64, 22, "ACK RECEIVED");
char temp[10];
sprintf(temp,"rssi: %d ",revrssi);
char temp[30];
sprintf(temp,"rssi: %d, snr: %d ",revrssi,revsnr);
display.setFont(ArialMT_Plain_10);
display.setTextAlignment(TEXT_ALIGN_RIGHT);
display.drawString(128, 0, temp);
Expand Down

0 comments on commit 44aacee

Please sign in to comment.