   
     // Indicate a message received
     analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_MSG);
-    
-/*
-  
-    int i;
-    int val = 0;
-    byte comma = 0;
-    for (i = 0; i < buflen; i++) {
-
-      if (buf[i] == 44) {      
-        // CSV - S,88,20.17,21.91,871,5595,5436
-        // comma 5 = solar panel reading
-        // comma 6 = battery reading
-        
-        if (comma == 5) {
-          parsed_val = val;
-          solar_val = map(val, 0, 10000, 0, 4095); // 0xFFF 12 bit DAC
-          
-          
-          // Print the solar reading
-          //Serial.print(" pwm("); 
-          //Serial.print(solar_val, DEC); 
-          //Serial.print(")"); 
-        }
-        
-        ++comma;
-        val = 0;
-      }
-      
-      
-      Serial.write(char(buf[i]));
-      
-      
-      if (comma == 5 || comma == 6) {
-        byte c = buf[i];
-        // Only interested in numbers.
-        // ASCII hex values 0x30 to 0x30 are decimal 0 to 9
-        if (c > 0x2F && c < 0x3A) {
-            if (val > 0) {
-                // Expecting decimal numbers like 24,
-                // so for each new argument multiply by ten.
-                val *= 10;
-                val += c - 0x30;
-            } else {
-                val = c - 0x30;
-            }
-            //Serial.print(val, DEC); 
-        }
-      }
-      
-      
-    }
-    
-    
-    // Print the battery reading
-    //Serial.print(" Bat("); 
-    //Serial.print(val, DEC); 
-    //Serial.print(")");
-    
-    
-    Serial.println(); 
-        
-    Serial.print(parsed_val);
-    Serial.print(" -> ");
-    Serial.println(solar_val); 
-*/
- 
 
 
     // Parse the received message into a nrf24 payload

    payload.serialize(tx);
    radio.write( &tx, Nrf24Payload_SIZE);

    // Set the needle on the analor meter
    solar_val = map(payload.getD(), 0, 10000, 0, 4095); // 0xFFF 12 bit DAC
    setVoltage(solar_val);
    

void goToSleep()
{
  
  cli();
    
  // ensure ADC is off
