mirror of
https://github.com/meshtastic/firmware.git
synced 2026-11-07 23:04:49 -05:00
RX-fail probe: read the chip mode on every LR board
#11983 gives both LR drivers readChipMode() unconditionally now, so the probe no longer needs the switch that used to compile it in. Co-Authored-By: Jonathan Bennett <jbennett@incomsystems.biz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01REkPVFh6kvG4AZJ5A8AtM9
This commit is contained in:
1 parent
dd2500e59d
commit
4fa14c7eb8
2 files changed
-8
No files matched your search
@@ -71,11 +71,7 @@ template <class T> class LR11x0Interface : public RadioLibInterface
|
||||
{
|
||||
pktType = 0xEE;
|
||||
typeErr = lora.getPacketType(&pktType);
|
||||
#ifdef LR11X0_READ_CHIP_MODE
|
||||
mode = this->readChipMode();
|
||||
#else
|
||||
mode = 0xEE; // not compiled in on this board
|
||||
#endif
|
||||
irq = lora.getIrqFlags();
|
||||
return true; // always report: a failed GetPacketType is the case of interest, not a reason to stay silent
|
||||
}
|
||||
|
||||
@@ -78,11 +78,7 @@ template <class T> class LR20x0Interface : public RadioLibInterface
|
||||
{
|
||||
pktType = 0xEE;
|
||||
typeErr = lora.getPacketType(&pktType);
|
||||
#ifdef LR2021_READ_CHIP_MODE
|
||||
mode = this->readChipMode();
|
||||
#else
|
||||
mode = 0xEE; // not compiled in on this board
|
||||
#endif
|
||||
irq = lora.getIrqFlags();
|
||||
return true; // always report: a failed GetPacketType is the case of interest, not a reason to stay silent
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user