Skip to content

Commit 8501c29

Browse files
authored
Added include guard to onewire_library.h (#595)
1 parent 2102420 commit 8501c29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pio/onewire/onewire_library/onewire_library.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _ONEWIRE_LIBRARY_H
2+
#define _ONEWIRE_LIBRARY_H
3+
14
#include "hardware/pio.h"
25
#include "hardware/clocks.h" // for clock_get_hz() in generated header
36
#include "onewire_library.pio.h" // generated by pioasm
@@ -14,4 +17,6 @@ bool ow_init (OW *ow, PIO pio, uint offset, uint gpio);
1417
void ow_send (OW *ow, uint data);
1518
uint8_t ow_read (OW *ow);
1619
bool ow_reset (OW *ow);
17-
int ow_romsearch (OW *ow, uint64_t *romcodes, int maxdevs, uint command);
20+
int ow_romsearch (OW *ow, uint64_t *romcodes, int maxdevs, uint command);
21+
22+
#endif

0 commit comments

Comments
 (0)