1-wire. Pointless uint8_t changed to more suitable size_t.

This commit is contained in:
barthess 2016-05-31 00:17:18 +03:00
parent b10e423406
commit 5d20ce4595
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ static void store_bit(onewire_search_rom_t *sr, uint8_t bit) {
* 'search ROM' helper structure
* @param[in] bit number of bit [0..63]
*/
static uint8_t extract_path_bit(const uint8_t *path, uint8_t bit) {
static uint8_t extract_path_bit(const uint8_t *path, size_t bit) {
return (path[bit / CHAR_BIT] >> (bit % CHAR_BIT)) & 1;
}