mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
move radiointerface into lib
This commit is contained in:
15
src/rf95/RadioInterface.cpp
Normal file
15
src/rf95/RadioInterface.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "CustomRF95.h"
|
||||
#include "NodeDB.h"
|
||||
#include "assert.h"
|
||||
#include "configuration.h"
|
||||
#include <pb_decode.h>
|
||||
#include <pb_encode.h>
|
||||
|
||||
RadioInterface::RadioInterface(MemoryPool<MeshPacket> &_pool, PointerQueue<MeshPacket> &_rxDest) : pool(_pool), rxDest(_rxDest) {}
|
||||
|
||||
ErrorCode SimRadio::send(MeshPacket *p)
|
||||
{
|
||||
DEBUG_MSG("SimRadio.send\n");
|
||||
pool.release(p);
|
||||
return ERRNO_OK;
|
||||
}
|
||||
Reference in New Issue
Block a user