mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 06:00:33 +00:00
@@ -215,6 +215,16 @@ void SimRadio::startReceive(MeshPacket *p) {
|
||||
handleReceiveInterrupt(p);
|
||||
}
|
||||
|
||||
QueueStatus SimRadio::getQueueStatus()
|
||||
{
|
||||
QueueStatus qs;
|
||||
|
||||
qs.res = qs.mesh_packet_id = 0;
|
||||
qs.free = txQueue.getFree();
|
||||
qs.maxlen = txQueue.getMaxLen();
|
||||
|
||||
return qs;
|
||||
}
|
||||
|
||||
void SimRadio::handleReceiveInterrupt(MeshPacket *p)
|
||||
{
|
||||
|
||||
@@ -45,6 +45,9 @@ class SimRadio : public RadioInterface
|
||||
*/
|
||||
virtual void startReceive(MeshPacket *p);
|
||||
|
||||
QueueStatus getQueueStatus() override;
|
||||
|
||||
|
||||
protected:
|
||||
/// are _trying_ to receive a packet currently (note - we might just be waiting for one)
|
||||
bool isReceiving = false;
|
||||
|
||||
Reference in New Issue
Block a user