Merged revision(s) 3172 from branches/releases/bacnet-stack-0-8-0:

Fixed ReinitializeDevice service error handling of states for demos and ports.
........
This commit is contained in:
skarg
2018-12-06 04:11:01 +00:00
parent 755f5087ef
commit 55794f7f54
7 changed files with 264 additions and 143 deletions
+6 -4
View File
@@ -368,10 +368,12 @@ bool Device_Reinitialize(
switch (rd_data->state) {
case BACNET_REINIT_COLDSTART:
case BACNET_REINIT_WARMSTART:
dcc_set_status_duration(COMMUNICATION_ENABLE, 0);
/* note: you probably want to restart *after* the
simple ack has been sent from the return handler
so just set a flag from here */
dcc_set_status_duration(COMMUNICATION_ENABLE, 0);
/* Note: you could use a mix of state
and password to multiple things */
/* note: you probably want to restart *after* the
simple ack has been sent from the return handler
so just set a flag from here */
Reinitialize_State = rd_data->state;
status = true;
break;