-
-
Notifications
You must be signed in to change notification settings - Fork 422
WIP: Fixed various warnings and errors identified by cppcheck #810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1b6a214
c2329b0
7a02f41
cb02002
dfb4dae
e735db6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -267,7 +267,7 @@ static int voltronic_bypass_volt_max(char *value, const size_t len) | |
| if (ivn >= 200) | ||
| return -1; | ||
|
|
||
| if (protocol == 2 || protocol == 2 || protocol == 10 || protocol == 13 || protocol == 14) | ||
| if (protocol == 2 || protocol == 3 || protocol == 10 || protocol == 13 || protocol == 14) | ||
| return 0; | ||
|
|
||
| break; | ||
|
|
@@ -300,7 +300,7 @@ static int voltronic_bypass_volt_max(char *value, const size_t len) | |
| if (ivn < 200) | ||
| return -1; | ||
|
|
||
| if (protocol == 2 || protocol == 2 || protocol == 10 || protocol == 13 || protocol == 14 || protocol == 99) | ||
| if (protocol == 2 || protocol == 3 || protocol == 10 || protocol == 13 || protocol == 14 || protocol == 99) | ||
|
||
| return 0; | ||
|
|
||
| break; | ||
|
|
@@ -394,7 +394,7 @@ static int voltronic_bypass_volt_min(char *value, const size_t len) | |
| if (ivn >= 200) | ||
| return -1; | ||
|
|
||
| if (protocol == 2 || protocol == 3 || protocol == 10 || protocol == 10 || protocol == 13 || protocol == 14) | ||
| if (protocol == 2 || protocol == 3 || protocol == 10 || protocol == 13 || protocol == 14) | ||
|
||
| return 0; | ||
|
|
||
| break; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,7 +102,6 @@ static int char_read (char *bytes, int size, int read_timeout) | |
| return -1; | ||
| } | ||
| else { | ||
| bytes += now; | ||
|
||
| readen += now; | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.