Skip to content

Commit

Permalink
Merge pull request #53 from driftregion/fix_static_analysis
Browse files Browse the repository at this point in the history
fix most static analysis defects in src/
  • Loading branch information
driftregion authored Feb 2, 2025
2 parents 36147cb + e11d6b7 commit 2695384
Show file tree
Hide file tree
Showing 14 changed files with 531 additions and 394 deletions.
1 change: 0 additions & 1 deletion .CodeChecker/skipfile.txt

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ compile_commands.json
MODULE.bazel.lock
iso14229.c
iso14229.h
html_report
misra_reports
**/*.ctu-info
**/*.dump
report.txt
json_report.json
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ see `enum UDSEvent` in [src/uds.h](src/uds.h)

```c
typedef struct {
const enum UDSDiagnosticSessionType type; /**< requested session type */
const uint8_t type; /**< requested session type */
uint16_t p2_ms; /**< optional return value: p2 timing override */
uint32_t p2_star_ms; /**< optional return value: p2* timing override */
} UDSDiagSessCtrlArgs_t;
Expand All @@ -114,7 +114,7 @@ typedef struct {

```c
typedef struct {
const enum UDSECUResetType type; /**< reset type requested by client */
const uint8_t type; /**< reset type requested by client */
uint8_t powerDownTime; /**< Optional response: notify client of time until shutdown (0-254) 255
indicates that a time is not available. */
} UDSECUResetArgs_t;
Expand Down Expand Up @@ -189,8 +189,8 @@ typedef struct {

```c
typedef struct {
enum UDSCommunicationControlType ctrlType;
enum UDSCommunicationType commType;
uint8_t ctrlType;
uint8_t commType;
} UDSCommCtrlArgs_t;
```
#### Supported Responses
Expand Down Expand Up @@ -393,6 +393,10 @@ bazel build //:release

# Changelog

## 0.9.0
- breaking API changes:
- converted subfunction enums to #defines with standard-consistent naming

## 0.8.0
- breaking API changes:
- event enum consolidated `UDS_SRV_EVT_...` -> `UDS_EVT`
Expand Down
Loading

0 comments on commit 2695384

Please sign in to comment.