Skip to content

Commit 6ee1831

Browse files
author
JeromeGalan
authored
Merge pull request #145 from Luos-io/fix/2.1.1
[Fix] shiftmask calculation
2 parents 3e48187 + 6af22ab commit 6ee1831

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Robus/src/robus.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ void Robus_ShiftMaskCalculation(uint16_t ID, uint16_t ServiceNumber)
491491
// Shift byte byte Mask of bit address
492492

493493
uint16_t tempo = 0;
494-
ctx.ShiftMask = ID / 8; // aligned to byte
494+
ctx.ShiftMask = (ID - 1) / 8; // aligned to byte
495495

496496
// create a mask of bit corresponding to ID number in the node
497497
for (uint16_t i = 0; i < ServiceNumber; i++)

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Luos",
33
"keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST",
44
"description": "Luos turns your embedded system into services like microservices architecture does it in software.",
5-
"version": "2.1.0",
5+
"version": "2.1.1",
66
"authors": {
77
"name": "Luos",
88
"url": "https://luos.io"

0 commit comments

Comments
 (0)