iot_water_monitor_v2

Dependencies:   easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code

Revision:
34:601effb7b7fe
Parent:
33:5b90257d2d57
Child:
38:64e3e9acb49c
--- a/Flash/flash_programming.h	Sun Jan 21 13:04:06 2018 +0000
+++ b/Flash/flash_programming.h	Wed Feb 14 03:56:34 2018 +0000
@@ -140,6 +140,7 @@
 
 #define RELAY1_ADDRESS          (RELAY_BASE_ADDRESS + STEP_ADDRESS)
 #define RELAY2_ADDRESS          (RELAY1_ADDRESS     + STEP_ADDRESS)
+#define RELAY3_ADDRESS          (RELAY2_ADDRESS     + STEP_ADDRESS)
 
 #define MODE_ADDRESS            (CONF_BASE_ADDRESS + STEP_ADDRESS)
 #define MIN_OXI_ADDRESS         (MODE_ADDRESS      + STEP_ADDRESS)
@@ -170,9 +171,10 @@
   * @brief  Write the states of relays into the flash memory
   * @param  RelayState1: Relay 1 state
   * @param  RelayState2: Relay 2 state
+  * @param  RelayState3: Relay 3 state
   * @retval FLASH result
   */
-int FP_WriteRelayStates(uint8_t RelayState1, uint8_t RelayState2);
+int FP_WriteRelayStates(uint8_t RelayState1, uint8_t RelayState2, uint8_t RelayState3);
 
 /**
   * @brief  Write the time to activate an event into the flash memory