       {
         Serial.println("ERROR printing to file");
       }
-      */
     }
     else
     {
-     Serial.println("Nothing found in the board state file."); 
+     Serial.println("Error opening the file to write to."); 
     }
     
     fclose(Output);
   }
   else
   {
-    Serial.println("Nothing to write to board state file."); 
+    Serial.println("Error getting board's state in JSON format."); 
   }
   
   aJson.deleteItem(msg);


    case DOWN:
    
      //  Serial.println("Writing board state to file");
        writeBoardStateToFile(BOARD_CONFIG_FILE_FULL_PATH);
      // g_iWriteToFile=1;
    

  }

  // Set the HW state
//  updateBoardState();

}

