Skip to content

Commit

Permalink
Version 1.4.2
Browse files Browse the repository at this point in the history
- Fix readNum with default value
  • Loading branch information
tgtakaoka committed Jan 13, 2025
1 parent b6b05e1 commit 51ed1eb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/cli/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ default_envs =

[env]
lib_deps =
[email protected].0
[email protected].2

[env:promicro16]
platform = atmelavr
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libcli",
"version": "1.4.0",
"version": "1.4.2",
"description": "Command Line Interface Library",
"keywords": "command line",
"repository":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=libcli
version=1.4.0
version=1.4.2
author=Tadashi G. Takaoka
maintainer=Tadashi G. Takaoka <[email protected]>
sentence=Command Line Interface library
Expand Down
4 changes: 2 additions & 2 deletions src/libcli.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

#define LIBCLI_VERSION_MAJOR 1
#define LIBCLI_VERSION_MINOR 4
#define LIBCLI_VERSION_PATCH 0
#define LIBCLI_VERSION_STRING "1.4.0"
#define LIBCLI_VERSION_PATCH 2
#define LIBCLI_VERSION_STRING "1.4.2"

#include "libcli_types.h"

Expand Down
2 changes: 1 addition & 1 deletion src/libcli/libcli_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void Impl::setCallback(

void Impl::setCallback(NumberCallback callback, uintptr_t context, uint_fast8_t radix,
uint32_t limit, uint32_t defval) {
setCallback(callback, context, limit, radix);
setCallback(callback, context, radix, limit);
backspace(num_width);
num_value = defval;
num_len = num_width;
Expand Down

0 comments on commit 51ed1eb

Please sign in to comment.