From 6bad2c721b9439189f90c698da8362b49af17f5a Mon Sep 17 00:00:00 2001 From: Olivier Date: Mon, 16 Jan 2017 20:36:15 +0100 Subject: [PATCH] Consolidate open PRs for bugfix release (#741) --- examples/PingPongSensor/PingPongSensor.ino | 6 +++--- library.json | 18 +++++++----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/examples/PingPongSensor/PingPongSensor.ino b/examples/PingPongSensor/PingPongSensor.ino index b21de56..7f7023a 100644 --- a/examples/PingPongSensor/PingPongSensor.ino +++ b/examples/PingPongSensor/PingPongSensor.ino @@ -84,7 +84,7 @@ void sendPingOrPongResponse( MyMessage msg ) nodeTypeAsCharRepresentation(msg.sender)); // Set payload to current time in millis to ensure each message is unique - response.set( millis() ); + response.set( (uint32_t)millis() ); response.setDestination(msg.sender); send(response); } @@ -92,7 +92,7 @@ void sendPingOrPongResponse( MyMessage msg ) void setNodeId(byte nodeID) { LOG(F("Setting node id to: %i.\n***Please restart the node for changes to take effect.\n"), nodeID); - eeprom_write_byte((uint8_t*)EEPROM_NODE_ID_ADDRESS, (byte)nodeID); + hwWriteConfig(EEPROM_NODE_ID_ADDRESS, (byte)nodeID); } const char * msgTypeAsCharRepresentation( mysensor_data mType ) @@ -103,4 +103,4 @@ const char * msgTypeAsCharRepresentation( mysensor_data mType ) const char * nodeTypeAsCharRepresentation( uint8_t node ) { return node == YING ? "Ying Node" : "Yang Node"; -} +} \ No newline at end of file diff --git a/library.json b/library.json index 864fb73..ad7226d 100644 --- a/library.json +++ b/library.json @@ -12,17 +12,13 @@ "platforms": [ "atmelavr", "atmelsam", - "espressif" + "espressif8266" ], - "exclude": [ - "tests", - "Documentation" - ], - "build": { - "srcFilter": [ - "+<*.c>", - "+<*.cpp>", - "+<*.h>" + "export": { + "exclude": [ + "tests", + "Documentation", + "Doxyfile" ] } -} +} \ No newline at end of file