radiolib: RADIO_DIAG -- radiostat/radiokick for a receiver that went deaf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
439d40ac04
commit
65ff32a10a
5 files changed
+106
No files matched your search
@@ -110,6 +110,17 @@ public:
|
||||
// CUSTOM (TeTeHacko): salvage diagnostics -- see `dio1` in simple_repeater.
|
||||
int probeDio1(uint32_t* irq_out, int* dio1_level, int* probe_level);
|
||||
#endif
|
||||
|
||||
#ifdef RADIO_DIAG
|
||||
// CUSTOM (TeTeHacko): `radiostat` / `radiokick` -- what state is a receiver
|
||||
// that has gone deaf actually in? See RadioLibWrappers.cpp.
|
||||
bool diagHandleCommand(const char* command, char* reply);
|
||||
protected:
|
||||
uint32_t _diag_last_rx_ms = 0; // millis() of the last packet read without error
|
||||
// Chip-side half of the snapshot: mode, IRQ, errors, pins. Default = none.
|
||||
virtual int diagChip(char* out, int sz) { return snprintf(out, sz, " chip=n/a"); }
|
||||
public:
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user