BLE Lightning sensor for Nordic NRF51822 based module

Dependencies:   AS3935 AS3935_ext BLE_API mbed nRF51822 nrf51_rtc

Files at this revision

API Documentation at this revision

Comitter:
takafuminaka
Date:
Sat Feb 13 06:19:45 2016 +0000
Parent:
8:e7a6fd7ab067
Commit message:
small modification.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e7a6fd7ab067 -r 0c7f020b9909 main.cpp
--- a/main.cpp	Sat Sep 05 13:19:24 2015 +0000
+++ b/main.cpp	Sat Feb 13 06:19:45 2016 +0000
@@ -59,9 +59,9 @@
         }
         
         char * events() {
-            if ( event & 0x4 ) {
+            if ( event & 0x8 ) {
                 return "Lightning interval";
-            } else if ( event & 0x2 ) {
+            } else if ( event & 0x4 ) {
                 return "Disturber deteced";
             } else if ( event & 0x1 ) {
                 return "Noise level too high";