raspberrypi / debugprobe

761 stars 202 forks source link

probe.c only includes probe.pio.h, doesn't include define for _oen version #115

Open DangerousPrototypes opened 8 months ago

DangerousPrototypes commented 8 months ago

probe.c only includes probe.pio.h only. It doesn't include defines two switch the probe_oen.pio.h version.

`

if defined(PROBE_IO_RAW) || defined(PROBE_IO_SWDI)

include "probe.pio.h"

endif

if defined(PROBE_IO_OEN)

include "probe_oen.pio.h"

endif

` I added this.

lurch commented 8 months ago

Would you like to create a PR?

P33M commented 8 months ago

probe.c should include probe.h which already has the compile-time switches, and not the probe*pio.h file directly.