BLE Lightning sensor for Nordic NRF51822 based module

Dependencies:   AS3935 AS3935_ext BLE_API mbed nRF51822 nrf51_rtc

Revision:
8:e7a6fd7ab067
Parent:
7:7cf0707ae983
Child:
9:0c7f020b9909
--- a/main.cpp	Sat Sep 05 13:00:13 2015 +0000
+++ b/main.cpp	Sat Sep 05 13:19:24 2015 +0000
@@ -305,7 +305,7 @@
     Lightning.powerUp();
 
     // AFE Gain (default Inddor:0x12 Outdoor:0x0es)
-    DEBUG("set Indoor Mode as 0x0d\r\n");
+    DEBUG("set AFE_GB as 0x0d\r\n");
     Lightning.registerWrite(AS3935_AFE_GB,0x0d);
 
     // Set NF_LEV (default = 2) (0..0x07)
@@ -316,7 +316,10 @@
     DEBUG("set WDTH as 0x02\r\n");
     Lightning.registerWrite(AS3935_WDTH,0x02);
 
-    
+    // Set SREJ
+    DEBUG("set SREJ as 0x09\r\n");
+    Lightning.registerWrite(AS3935_SREJ,0x09);
+
     DEBUG("Auto Calibration Start\r\n");
     float minerr = 100;
     int fincap = 7;