From 5d4cfd6d0af50258626b7270497c606f76b8a548 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Sun, 28 Oct 2018 02:14:15 +0200
Subject: [PATCH] Remove unneccessary settings (board-specific settings are
 either done in MyBoardNRF5.cpp or in the board variant if some ohter
 nrf5-based board definition is used. No need to repeat them here

---
 NodeManager_PlantWaterLevel.ino | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/NodeManager_PlantWaterLevel.ino b/NodeManager_PlantWaterLevel.ino
index b0eb06c..559e3cd 100644
--- a/NodeManager_PlantWaterLevel.ino
+++ b/NodeManager_PlantWaterLevel.ino
@@ -48,7 +48,7 @@ NodeManager provides built-in implementation of a number of sensors through ad-h
 //#define MY_DEBUG_VERBOSE_RF24
 
 // Advanced settings
-#define My_BAUD_RATE 57600
+#define MY_BAUD_RATE 115200
 #define MY_SMART_SLEEP_WAIT_DURATION_MS 500
 #define MY_SPLASH_SCREEN_DISABLED
 //#define MY_DISABLE_RAM_ROUTING_TABLE_FEATURE
@@ -150,13 +150,6 @@ void before() {
   blinkityBlink(1);
   blinkityBlink(1);
 
-#ifdef CHIP_NRF5
-  // Reassign Serial Pins as given in the board definition
-//  MY_SERIALDEVICE.setPins(PIN_SERIAL_RX, 13);
-#endif
-  // setup the serial port baud rate
-//  MY_SERIALDEVICE.begin(MY_BAUD_RATE);
-
   /*
   * Configure your sensors
   */
@@ -199,16 +192,6 @@ void setup() {
   hwPinMode(LED_BUILTIN,OUTPUT_D0H1);
   blinkityBlink(3);  //signify power-up and start of operations
 
-//  NRF_CLOCK->INTENSET = B11;  // enable interrupts for EVENTS_HFCLKSTARTED and  EVENTS_LFCLKSTARTED
-//  NRF_CLOCK->TASKS_HFCLKSTART = 1;  //start the high frequency crystal oscillator clock
-//  while (!(NRF_CLOCK->EVENTS_HFCLKSTARTED)) {} //wait until high frequency crystal oscillator clock is up to speed and working
-
-#ifdef CHIP_NRF5
-  // Setup I2C pins (custom pins given in the board definition!)
-//  Wire.setPins(SDA, SCL);
-//  Wire.begin();
-#endif
-
   // call NodeManager setup routine
   nodeManager.setup();
   
-- 
GitLab