ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
893 stars 336 forks source link

RFSniffer doesn't flush output #54

Closed chrisEff closed 5 years ago

chrisEff commented 6 years ago

I'm building a nodejs application that spawns RFSniffer as a child process and executes some callback every time the sniffer reports receiving a code. This does not work unless I add this line to RFSniffer.cpp: fflush(stdout); (before the resetAvailable() call).