Skip to content

Commit

Permalink
Merge pull request #58 from endail/endail/issue57
Browse files Browse the repository at this point in the history
Unused parameters?
  • Loading branch information
endail authored Apr 28, 2023
2 parents cd1e898 + 7446492 commit 43296df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cmake_minimum_required(VERSION 3.12)
include(pico_sdk_import.cmake)

project(hx711-pico-c
VERSION 2.0.1
VERSION 2.0.2
DESCRIPTION "Implementation of HX711 use via RP2040's state machine"
HOMEPAGE_URL "https://github.com/endail/hx711-pico-c"
LANGUAGES C CXX ASM
Expand Down
1 change: 0 additions & 1 deletion include/hx711_multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ extern hx711_multi_t* hx711_multi__async_read_array[
HX711_MULTI_ASYNC_READ_COUNT];

static void hx711_multi__init_asert(
hx711_multi_t* const hxm,
const hx711_multi_config_t* const config);

/**
Expand Down
4 changes: 1 addition & 3 deletions src/hx711_multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ hx711_multi_t* hx711_multi__async_read_array[] = {
};

void hx711_multi__init_asert(
hx711_multi_t* const hxm,
const hx711_multi_config_t* const config) {

assert(hxm != NULL);
assert(config != NULL);

assert(util_uint_in_range(
Expand Down Expand Up @@ -519,7 +517,7 @@ void hx711_multi_init(
hx711_multi_t* const hxm,
const hx711_multi_config_t* const config) {

hx711_multi__init_asert(hxm, config);
hx711_multi__init_asert(config);

#ifndef HX711_NO_MUTEX
//this doesn't need to be an interrupts-off block
Expand Down

0 comments on commit 43296df

Please sign in to comment.