BLE Lightning sensor for Nordic NRF51822 based module

Dependencies:   AS3935 AS3935_ext BLE_API mbed nRF51822 nrf51_rtc

Revision:
9:0c7f020b9909
Parent:
8:e7a6fd7ab067
--- 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";