Skip to content

Commit 1569459

Browse files
chris-durandsalkinium
authored andcommitted
[sam] Fix compiler warnings when using GpioUnused in SoftwareGpioPort
1 parent ad60e77 commit 1569459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modm/platform/gpio/sam/unused.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GpioUnused : public ::modm::GpioIO
3131
using Type = GpioUnused;
3232
static constexpr bool isInverted = false;
3333
static constexpr PortName port = PortName(-1);
34-
static constexpr uint8_t pin = uint8_t(-1);
34+
static constexpr uint8_t pin = 0;
3535
static constexpr uint32_t mask = 0;
3636

3737
// GpioOutput

0 commit comments

Comments
 (0)