MCPcopy Create free account
hub / github.com/BruceDevices/firmware / addToRecentCodes

Function addToRecentCodes

src/modules/rf/rf_utils.cpp:467–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void addToRecentCodes(struct RfCodes rfcode) {
468 // copy rfcode -> recent_rfcodes[recent_rfcodes_last_used]
469 recent_rfcodes[recent_rfcodes_last_used] = rfcode;
470 recent_rfcodes_last_used += 1;
471 if (recent_rfcodes_last_used == 16) recent_rfcodes_last_used = 0; // cycle
472}
473
474struct RfCodes selectRecentRfMenu() {
475 options = {};

Callers 2

replay_signalMethod · 0.70
txSubFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected