mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Remove redundant send/complete/finished callbacks, use Radio interface directly
This commit is contained in:
parent
362b5eb0a1
commit
00b44c4114
3 changed files with 4 additions and 36 deletions
|
|
@ -70,18 +70,6 @@ void onGetStats(uint32_t* rx, uint32_t* tx, uint32_t* errors) {
|
|||
*errors = radio_driver.getPacketsRecvErrors();
|
||||
}
|
||||
|
||||
void onSendPacket(const uint8_t* data, uint16_t len) {
|
||||
radio_driver.startSendRaw(data, len);
|
||||
}
|
||||
|
||||
bool onIsSendComplete() {
|
||||
return radio_driver.isSendComplete();
|
||||
}
|
||||
|
||||
void onSendFinished() {
|
||||
radio_driver.onSendFinished();
|
||||
}
|
||||
|
||||
void setup() {
|
||||
board.begin();
|
||||
|
||||
|
|
@ -127,9 +115,6 @@ void setup() {
|
|||
modem->setTxPowerCallback(onSetTxPower);
|
||||
modem->setGetCurrentRssiCallback(onGetCurrentRssi);
|
||||
modem->setGetStatsCallback(onGetStats);
|
||||
modem->setSendPacketCallback(onSendPacket);
|
||||
modem->setIsSendCompleteCallback(onIsSendComplete);
|
||||
modem->setOnSendFinishedCallback(onSendFinished);
|
||||
modem->begin();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue