aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2016-05-31 00:17:18 +0300
committerbarthess <barthess@yandex.ru>2016-05-31 00:17:18 +0300
commit5d20ce4595a564c1f98a31445f5015de41e1e25f (patch)
tree7d4054003664093b444fff9d1414b40ef493f3c8 /os
parentb10e42340675dfb915be881b45053aeccf1dcbe4 (diff)
downloadChibiOS-Contrib-5d20ce4595a564c1f98a31445f5015de41e1e25f.tar.gz
ChibiOS-Contrib-5d20ce4595a564c1f98a31445f5015de41e1e25f.tar.bz2
ChibiOS-Contrib-5d20ce4595a564c1f98a31445f5015de41e1e25f.zip
1-wire. Pointless uint8_t changed to more suitable size_t.
Diffstat (limited to 'os')
-rw-r--r--os/hal/src/hal_onewire.c2
1 files changed, 1 insertions, 1 deletions
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;
}