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
Diff: gnss.cpp
- Revision:
- 15:cb9861f0f4d8
- Parent:
- 14:105cf3ca48c9
- Child:
- 16:6c226e3e9d61
diff -r 105cf3ca48c9 -r cb9861f0f4d8 gnss.cpp
--- a/gnss.cpp Tue Jul 24 16:02:21 2018 +0500
+++ b/gnss.cpp Wed Aug 01 13:14:52 2018 +0500
@@ -23,6 +23,12 @@
#include "ctype.h"
#include "gnss.h"
+#ifdef UBLOX_WEARABLE_FRAMEWORK
+#include "SDCardModel.h"
+#else
+#define SEND_LOGGING_MESSAGE printf
+#endif
+
GnssParser::GnssParser(void)
{
// Create the enable pin but set everything to disabled
@@ -593,7 +599,9 @@
}
int GnssSerial::_send(const void* buf, int len)
-{
+{
+ GET_SDCARD_INSTANCE->write(logging_file_name, (void *)buf, len);
+
return put((const char*)buf, len, true/*=blocking*/);
}

