Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gnss by
Revision 7:bfbe9d5d6f56, committed 2018-08-14
- Comitter:
- RobMeades
- Date:
- Tue Aug 14 13:26:18 2018 +0100
- Parent:
- 6:56eda66d585b
- Child:
- 8:ca4d0ae32c93
- Commit message:
- Only set up _gnssEnable if GNSSEN is not set to NC.
Changed in this revision
| gnss.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/gnss.cpp Wed Jun 14 20:44:42 2017 +0100
+++ b/gnss.cpp Tue Aug 14 13:26:18 2018 +0100
@@ -28,10 +28,12 @@
// Create the enable pin but set everything to disabled
_gnssEnable = NULL;
-#ifdef TARGET_UBLOX_C030
+#if GNSSEN != NC
+# ifdef TARGET_UBLOX_C030
_gnssEnable = new DigitalInOut(GNSSEN, PIN_OUTPUT, PushPullNoPull, 0);
-#else
+# else
_gnssEnable = new DigitalInOut(GNSSEN, PIN_OUTPUT, PullNone, 1);
+# endif
#endif
}
