Remove KEY_STATE_SIZE in favor of the more general BOOL_BYTES_TO_BITS_COUNT() macro.

This commit is contained in:
László Monda
2017-09-30 00:57:10 +02:00
parent abc1923897
commit ea71253d6a
4 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,10 @@
#include <stdint.h>
// Macros:
#define BOOL_BYTES_TO_BITS_COUNT(BYTE_COUNT) (BYTE_COUNT/8 + (BYTE_COUNT % 8 ? 1 : 0))
// Functions:
void BoolBytesToBits(uint8_t *srcBytes, uint8_t *dstBits, uint8_t byteCount);