[fdb] Fix mismatch with the comments for status migration when FDB_WRITE_GRAN eq 1
This commit is contained in:
parent
1bd704db0a
commit
d4b9a0496e
@ -102,7 +102,7 @@ size_t _fdb_set_status(uint8_t status_table[], size_t status_num, size_t status_
|
|||||||
if (status_index > 0) {
|
if (status_index > 0) {
|
||||||
#if (FDB_WRITE_GRAN == 1)
|
#if (FDB_WRITE_GRAN == 1)
|
||||||
byte_index = (status_index - 1) / 8;
|
byte_index = (status_index - 1) / 8;
|
||||||
status_table[byte_index] &= ~(0x80 >> ((status_index - 1) % 8));
|
status_table[byte_index] &= (0x00ff >> (status_index % 8));
|
||||||
#else
|
#else
|
||||||
byte_index = (status_index - 1) * (FDB_WRITE_GRAN / 8);
|
byte_index = (status_index - 1) * (FDB_WRITE_GRAN / 8);
|
||||||
status_table[byte_index] = 0x00;
|
status_table[byte_index] = 0x00;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user