Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjko committed Jan 15, 2025
1 parent 262de2d commit 74061fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)


project(fanpico
VERSION 1.7.2
VERSION 1.7.3
DESCRIPTION "FanPico - Programmable PWM (PC) Fan Controller"
HOMEPAGE_URL https://kokkonen.net/fanpico/
LANGUAGES C CXX ASM
Expand Down
9 changes: 3 additions & 6 deletions src/filters.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* filters.c
Copyright (C) 2023 Timo Kokkonen <tjko@iki.fi>
Copyright (C) 2023-2025 Timo Kokkonen <tjko@iki.fi>
SPDX-License-Identifier: GPL-3.0-or-later
Expand Down Expand Up @@ -55,11 +55,8 @@ int str2filter(const char *s)

const char* filter2str(enum signal_filter_types source)
{
for (int i = 0; filters[i].name; i++) {
if (source == i) {
return filters[i].name;
}
}
if (source <= FILTER_ENUM_MAX)
return filters[source].name;

return "none";
}
Expand Down

0 comments on commit 74061fc

Please sign in to comment.