mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
* to allow changing to new mesh transport * to allow a different chipset for the radio * to allow testing on hardware with a SimRadio * new "bare" build env for a devboard with virtually no hardware * make buttons optional
15 lines
389 B
C++
15 lines
389 B
C++
#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;
|
|
} |