lpcmanager

Parents 20125804dfa5
Children cc01080da6d8
Changed PLCID to PLC_ID in new official release of Beremiz.
--- a/MC9target/plc_MC9_main_retain.c Thu Jan 26 12:31:35 2017 +0100
+++ b/MC9target/plc_MC9_main_retain.c Fri Feb 10 09:15:58 2017 +0100
@@ -254,8 +254,8 @@
void ValidateRetainBuffer(void)
{
if(retain_busy == 0){
- if(PLCID)
- memcpy(priv.buf.id, PLCID, IDLEN);
+ if(PLC_ID)
+ memcpy(priv.buf.id, PLC_ID, IDLEN);
retain_busy = 1;
rt_mutex_release(&RETAIN_Mutex);
rt_event_signal(&RETAIN_Event, 1);
@@ -286,9 +286,9 @@
{
/* compare RETAIN ID buffer with MD5 */
/* return true if identical */
- if(PLCID){
+ if(PLC_ID){
int res;
- res = memcmp(&priv.buf.id[0], PLCID, IDLEN) == 0;
+ res = memcmp(&priv.buf.id[0], PLC_ID, IDLEN) == 0;
return res;
}else{
return 0;