Skip to content

Conversation

@vstarodubtsev
Copy link
Contributor

After a refactoring #270, the skdio driver stopped working correctly.
It turned out that the json_request function previously returned an int and zero in the positive case.
After the refactoring, the positive result was true—the behavior was reversed.
The patch only changes the function's usage, although the style should have returned an int, as in all other driver functions.

@CoelacanthusHex
Copy link
Contributor

The patch only changes the function's usage, although the style should have returned an int, as in all other driver functions.

Yeah. The mixed style is mainly because we originally wrote this project with C89, where no bool type. When we switch to C99 (with some C11 features), we don't perform a complete refactor.

Copy link
Contributor

@CoelacanthusHex CoelacanthusHex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@septs septs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CoelacanthusHex CoelacanthusHex merged commit 977c324 into estkme-group:main Nov 2, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants