This repository was archived by the owner on Jan 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Condition is always false #150
Copy link
Copy link
Closed
Description
With const int checksumFailurePin = -1; the condition is always false in several places:
| if (checksumFailurePin >= 0) |
| if (checksumFailurePin >= 0) |
| if (checksumFailurePin >= 0) |
| if (checksumFailurePin >= 0) |
| if (checksumFailurePin >= 0) |
Suggested fix in:
| const int checksumFailurePin = -1; |
#if defined(SPARKFUN_UBLOX_CHECKSUM_PIN)
const int checksumFailurePin {SPARKFUN_UBLOX_CHECKSUM_PIN};
#endif
and additionally gate the mentioned locations in cpp with
#if defined(SPARKFUN_UBLOX_CHECKSUM_PIN)
...
#endif
Metadata
Metadata
Assignees
Labels
No labels