drivers/mrf24j40: Fixes math error for calculating sleep count values

This commit is contained in:
Anthony Merlino 2017-07-13 17:56:59 -04:00
parent 86b690a285
commit acc1ecd9a9

View File

@ -147,7 +147,7 @@ static void mrf24j40_setorder(FAR struct mrf24j40_radio_s *dev, uint8_t bo,
else
{
maincnt = bi / dev->slpclkper;
remcnt = bi - (maincnt * dev->slpclkper) / 50;
remcnt = (bi - (maincnt * dev->slpclkper)) / 50;
}
wlinfo("MAINCNT: %lu, REMCNT: %lu\n", maincnt, remcnt);