SX126xDevKit

Dependencies:   mbed DmTftLibrary SX126xLib

Revision:
1:b96176a4ccb8
Parent:
0:e5420f1a8a1a
--- a/main.cpp	Tue Sep 05 08:15:37 2017 +0000
+++ b/main.cpp	Fri Mar 09 13:28:34 2018 +0000
@@ -35,10 +35,11 @@
     uint8_t currentPage = START_PAGE;
     uint8_t demoStatusUpdate = 0;
     uint8_t deviceConnected = 0;
+    uint8_t matchingFreq = 0;
 
     if( blueButton == 0 )
     {
-        EepromInit( 0xFF );
+        EepromEraseCheckSum( );
         NVIC_SystemReset( );
     }
 
@@ -47,9 +48,11 @@
     F_CS = 1;
 
     deviceConnected = GetConnectedDevice( );
-    EepromInit( deviceConnected );
+    matchingFreq = GetMatchingFrequency( );
+
+    EepromInit( deviceConnected, matchingFreq );
     InitDemoApplication( );
-    MenuInit( deviceConnected );
+    MenuInit( deviceConnected, matchingFreq );
     TimersInit( );
 
     printf( "Start SX126xDevKit : %s\n\r", FIRMWARE_VERSION );
@@ -71,6 +74,10 @@
                 demoStatusUpdate = RunDemoApplicationPer( );
                 break;
 
+            case PAGE_RSSI_TEST:
+                demoStatusUpdate = RunDemoTestRssi( );
+                break;
+
             case PAGE_SLEEP_MODE:
                 demoStatusUpdate = RunDemoSleepMode( );
                 break;