X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/103d40f78446345f6f5b705139492418cf6ee953..refs/heads/master:/hm.c diff --git a/hm.c b/hm.c index 818081f..0122500 100644 --- a/hm.c +++ b/hm.c @@ -1,6 +1,6 @@ /* HomeMatic protocol-functions * - * Copyright (c) 2014-15 Michael Gernoth + * Copyright (c) 2014-16 Michael Gernoth * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -96,7 +96,7 @@ uint8_t* hm_sign(uint8_t *key, uint8_t *challenge, uint8_t *m_frame, uint8_t *ex break; } - resp[i] ^= m_frame[PAYLOAD + 1+ i]; + resp[i] ^= m_frame[PAYLOAD + 1 + i]; } if (debug)