From 5d20ce4595a564c1f98a31445f5015de41e1e25f Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 31 May 2016 00:17:18 +0300 Subject: 1-wire. Pointless uint8_t changed to more suitable size_t. --- os/hal/src/hal_onewire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/src') diff --git a/os/hal/src/hal_onewire.c b/os/hal/src/hal_onewire.c index 61a1e6c..a93eec0 100644 --- a/os/hal/src/hal_onewire.c +++ b/os/hal/src/hal_onewire.c @@ -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; } -- cgit v1.2.3