Fixes a minor issue on example number 2

- The data content was not displayed (only the signal timings). This has
  been fixed.
This commit is contained in:
Sébastien Millet 2021-06-17 21:43:23 +02:00
parent 5679085923
commit d3223ec490
3 changed files with 8 additions and 10 deletions

View File

@ -52,7 +52,7 @@ for high signal, underscore for low radio signal):
The decoder tries to be as flexible as possible to decode any protocols,
without pre-knowledge about signal timings. To be generic enough, only the
_relationships_ between timings is analyzed, to deduct the 'short' and 'long'
_relationships_ between timings are analyzed, to deduct the 'short' and 'long'
duration on 'low' and 'high' radio frequence signal value. No pre-defined
timing is used.

View File

@ -105,16 +105,14 @@ void loop() {
pdec->get_nb_errors(), pdec->get_id_letter(),
pdec->get_repeats() + 1, nb_bits);
if (pdec->data_got_decoded()) {
if (pdata) {
Serial.print(", data: ");
if (pdata) {
char *buf = pdata->to_str();
if (buf) {
Serial.print(buf);
free(buf);
}
delete pdata;
char *buf = pdata->to_str();
if (buf) {
Serial.print(buf);
free(buf);
}
delete pdata;
}
Serial.print("\n");
output_timings(pdec);

View File

@ -1,5 +1,5 @@
name=RF433any
version=0.5.2
version=0.5.3
author=Sébastien Millet
maintainer=Sébastien Millet <milletseb@laposte.net>
sentence=A library to decode any protocol received on a 433 Mhz Radio Frequencies receiver