Skip to content

Commit

Permalink
PJOMaster RID condition bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed Sep 18, 2017
1 parent 04d0c2b commit 0f1d265
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PJONMaster.h
Expand Up @@ -288,9 +288,9 @@ class PJONMaster : public PJON<Strategy> {
) {
uint8_t request = this->data[overhead - CRC_overhead];
uint32_t rid =
(uint32_t)(this->data[(overhead - CRC_overhead) + 1] << 24) |
(uint32_t)(this->data[(overhead - CRC_overhead) + 2] << 16) |
(uint32_t)(this->data[(overhead - CRC_overhead) + 3] << 8) |
(uint32_t)(this->data[(overhead - CRC_overhead) + 1]) << 24 |
(uint32_t)(this->data[(overhead - CRC_overhead) + 2]) << 16 |
(uint32_t)(this->data[(overhead - CRC_overhead) + 3]) << 8 |
(uint32_t)(this->data[(overhead - CRC_overhead) + 4]);

if(request == PJON_ID_REQUEST)
Expand Down

0 comments on commit 0f1d265

Please sign in to comment.