Commit 760e561b0c4ae54b2caa1bdb7b65a106fe4ede8e

Authored by Antonio Carlos Domínguez Brito
1 parent d1f3ef98
Exists in master

fixing a small glitch, config() in tc_lib.h:146 was not returning anything, now it does

examples/wave_example/wave_example.ino
... ... @@ -35,7 +35,7 @@
35 35  
36 36 using namespace arduino_due;
37 37  
38   -#define WAVE_PERIOD 500 // 240 //460 // 1200 //50000 // hundredths of usecs. (1e-8 msecs.)
  38 +#define WAVE_PERIOD 120 //460 // 1200 //50000 // hundredths of usecs. (1e-8 msecs.)
39 39 #define WAVE_PIN 10
40 40  
41 41 #define CAPTURE_TIME_WINDOW 2500000 // usecs
... ...
tc_lib.h
... ... @@ -143,7 +143,7 @@ namespace arduino_due
143 143 bool config(
144 144 uint32_t the_capture_window,
145 145 uint32_t the_overruns = DEFAULT_MAX_OVERRUNS
146   - ) { _ctx_.config(the_capture_window,the_overruns); }
  146 + ) { return _ctx_.config(the_capture_window,the_overruns); }
147 147  
148 148 constexpr uint32_t ticks_per_usec() { return _ctx_.ticks_per_usec(); }
149 149 constexpr uint32_t max_capture_window() { return _ctx_.max_capture_window(); }
... ...