Updates example code number 4

- Adds call to setopt_wait_free_433_before_calling_callbacks to
  04_callback.ino.
This commit is contained in:
Sébastien Millet 2021-07-11 19:05:45 +02:00
parent f535d56cdb
commit bb935c7bd6
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ void on_call(void *data) {
void setup() {
pinMode(PIN_RFINPUT, INPUT);
Serial.begin(115200);
track.setopt_wait_free_433_before_calling_callbacks(true);
track.register_callback(RF433ANY_ID_TRIBIT,
new BitVector(32, 4, 0xb9, 0x35, 0x6d, 0x00),
(void *)(&dummy + 1), on_call, 2000);