Skip to content

Commit dad521a

Browse files
committed
Add missing multiple-inclusion guards.
1 parent ec32040 commit dad521a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/AdvancedADC.h

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include "DMABuffer.h"
2222
#include "AdvancedAnalog.h"
2323

24+
#ifndef ARDUINO_ADVANCED_ADC_H_
25+
#define ARDUINO_ADVANCED_ADC_H_
26+
2427
struct adc_descr_t;
2528

2629
class AdvancedADC {
@@ -45,3 +48,5 @@ class AdvancedADC {
4548
int begin(uint32_t resolution, uint32_t sample_rate, size_t n_samples, size_t n_buffers);
4649
int stop();
4750
};
51+
52+
#endif /* ARDUINO_ADVANCED_ADC_H_ */

src/AdvancedDAC.h

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include "DMABuffer.h"
2222
#include "AdvancedAnalog.h"
2323

24+
#ifndef ARDUINO_ADVANCED_DAC_H_
25+
#define ARDUINO_ADVANCED_DAC_H_
26+
2427
struct dac_descr_t;
2528

2629
class AdvancedDAC {
@@ -47,3 +50,5 @@ class AdvancedDAC {
4750
int begin(uint32_t resolution, uint32_t frequency, size_t n_samples=0, size_t n_buffers=0);
4851
int stop();
4952
};
53+
54+
#endif /* ARDUINO_ADVANCED_DAC_H_ */

0 commit comments

Comments
 (0)