Skip to content

Commit 9179c36

Browse files
committed
Added constexpr check around mb9bf560l analog check
1 parent e0a0d97 commit 9179c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/core/cypress/mb9bf560l/port.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ namespace klib::core::mb9bf560l::io::detail::pins {
586586
);
587587

588588
// always disable analog mode if we are not switching to analog mode
589-
if (!std::is_same_v<Periph, io::detail::alternate::analog>) {
589+
if constexpr (!std::is_same_v<Periph, io::detail::alternate::analog>) {
590590
// disable the analog mode if it is available on the pin
591591
if constexpr (has_analog) {
592592
// disable the analog mode

0 commit comments

Comments
 (0)