Modified to check password in the same fashion as h_dcc. This saves on having a static BACnet string which frees up 1.5KB.

This commit is contained in:
petermcs
2010-01-21 21:56:33 +00:00
parent 38a182261d
commit a724293088
+1 -3
View File
@@ -39,7 +39,6 @@
#include "rd.h"
static char *Password = "Jesus";
static BACNET_CHARACTER_STRING My_Password;
void handler_reinitialize_device(
uint8_t * service_request,
@@ -107,8 +106,7 @@ void handler_reinitialize_device(
"ReinitializeDevice: Sending Reject - undefined enumeration\n");
#endif
} else {
characterstring_init_ansi(&My_Password, Password);
if (characterstring_same(&their_password, &My_Password)) {
if (characterstring_ansi_same(&their_password, Password)) {
len =
encode_simple_ack(&Handler_Transmit_Buffer[pdu_len],
service_data->invoke_id,