Skip to content

Commit 13e9f0e

Browse files
authored
Fixed compile bug with defaulted parameters
1 parent 563bf02 commit 13e9f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AdvancedADC.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AdvancedADC {
4646
~AdvancedADC();
4747
bool available();
4848
SampleBuffer read();
49-
int begin(uint32_t resolution, uint32_t sample_rate, size_t n_samples, size_t n_buffers, bool noStart);
49+
int begin(uint32_t resolution, uint32_t sample_rate, size_t n_samples, size_t n_buffers, bool noStart=false);
5050
int begin(uint32_t resolution, uint32_t sample_rate, size_t n_samples, size_t n_buffers, size_t n_pins, pin_size_t *pins, bool noStart=false) {
5151
if (n_pins > AN_MAX_ADC_CHANNELS) n_pins = AN_MAX_ADC_CHANNELS;
5252
for (size_t i = 0; i < n_pins; ++i) {

0 commit comments

Comments
 (0)