diff options
| author | HiFiPhile <[email protected]> | 2024-09-04 20:06:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-04 20:06:47 +0200 |
| commit | 3eea46056ea20aa12b73eea7c01d6c6e5b2d490a (patch) | |
| tree | 79d053674c7918e38d6317828076bb39bdf902cc /examples | |
| parent | 55951b71aea46c09f27afe1640454fe43c983eec (diff) | |
| parent | 6935c663094bbba58e03c7820f4c2893fbce61a1 (diff) | |
Merge pull request #2788 from dp111/cppcheck
make function prototypes match functions( found by cppcheck)
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/typec/power_delivery/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/typec/power_delivery/src/main.c b/examples/typec/power_delivery/src/main.c index 489d01aa1..a8214f34e 100644 --- a/examples/typec/power_delivery/src/main.c +++ b/examples/typec/power_delivery/src/main.c @@ -98,7 +98,7 @@ bool tuc_pd_data_received_cb(uint8_t rhport, pd_header_t const* header, uint8_t pd_pdo_fixed_t const* fixed = (pd_pdo_fixed_t const*) &pdo; uint32_t const voltage_mv = fixed->voltage_50mv*50; uint32_t const current_ma = fixed->current_max_10ma*10; - printf("[Fixed] %lu mV %lu mA\r\n", voltage_mv, current_ma); + printf("[Fixed] %"PRIu32" mV %"PRIu32" mA\r\n", voltage_mv, current_ma); if (voltage_mv <= VOLTAGE_MAX_MV && current_ma >= CURRENT_MAX_MA) { // Found a suitable PDO |
