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.
Dependencies: BLE_API mbed nRF51822
Revision 12:150a6480a157, committed 2014-10-02
- Comitter:
- Bobty
- Date:
- Thu Oct 02 07:05:15 2014 +0000
- Parent:
- 11:0e738f47ecd2
- Commit message:
- Fails on 5ms
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0e738f47ecd2 -r 150a6480a157 main.cpp
--- a/main.cpp Wed Oct 01 17:53:48 2014 +0000
+++ b/main.cpp Thu Oct 02 07:05:15 2014 +0000
@@ -35,7 +35,7 @@
#endif /* #if NEED_CONSOLE_OUTPUT */
// Sample interval (uS)
-volatile uint32_t sampleIntervalUs = 2000;
+volatile uint32_t sampleIntervalUs = 5000;
// Timer to do the sampling etc
Timer intervalTimer;
@@ -58,7 +58,7 @@
void periodicCallback(void)
{
callbackCount++;
- if (callbackCount == 500)
+ if (callbackCount == 200)
{
callbackCount = 0;
indicatorLed1 = !indicatorLed1;
@@ -109,7 +109,7 @@
{
triggerSensorPolling = false;
bleUpdateCount++;
- if (bleUpdateCount >= 500)
+ if (bleUpdateCount >= 200)
{
bleUpdateCount = 0;
indicatorLed2 = !indicatorLed2;