Skip to content

Commit

Permalink
Fixed for udpated API.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjeong committed Jan 14, 2019
1 parent 1c6dc4f commit c56d2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SX1276-Tx/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ uint8_t syncword = 0x12;
uint32_t freq = 917100000;
bool packetMode = true;

static void eventOnTxDone(void *ctx, bool success) {
static void eventOnTxDone(void *ctx, bool success, GPIOInterruptInfo_t *) {
printf("[%lu us] Tx %s!\n", micros(), (success) ? "SUCCESS" : "FAIL");
delete frame;
frame = NULL;
Expand Down Expand Up @@ -80,7 +80,7 @@ static void appStart() {
SX1276.setTxPower(txPower);

if (packetMode) {
SX1276.onTxDone(eventOnTxDone, NULL);
SX1276.onTxDone = eventOnTxDone;

sendTimer.onFired(sendTask, NULL);
sendTimer.startPeriodic(5000);
Expand Down

0 comments on commit c56d2a0

Please sign in to comment.