diff options
| author | Ben Avison <[email protected]> | 2022-09-01 12:34:25 +0100 |
|---|---|---|
| committer | Ben Avison <[email protected]> | 2022-09-13 18:00:50 +0100 |
| commit | 53f0d5538bd2ab171567c9ba3138522accc8145d (patch) | |
| tree | fdc9738ada21bdc7c3bc95f06f48b5c07ff61673 /examples/device | |
| parent | 65ba15c37d50fa470fa24c38dbf0e30eba3147c0 (diff) | |
Don't assume ints automatically convert to enums
IAR generates warning Pe188 'enumerated type mixed with another type'.
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/audio_4_channel_mic/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/audio_test/src/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/audio_4_channel_mic/src/main.c b/examples/device/audio_4_channel_mic/src/main.c index 662f67df3..db2e9bf95 100644 --- a/examples/device/audio_4_channel_mic/src/main.c +++ b/examples/device/audio_4_channel_mic/src/main.c @@ -287,7 +287,7 @@ bool tud_audio_get_req_entity_cb(uint8_t rhport, tusb_control_request_t const * // Those are dummy values for now ret.bNrChannels = 1; - ret.bmChannelConfig = 0; + ret.bmChannelConfig = (audio_channel_config_t) 0; ret.iChannelNames = 0; TU_LOG2(" Get terminal connector\r\n"); diff --git a/examples/device/audio_test/src/main.c b/examples/device/audio_test/src/main.c index 4b88c2883..a3bf767f4 100644 --- a/examples/device/audio_test/src/main.c +++ b/examples/device/audio_test/src/main.c @@ -288,7 +288,7 @@ bool tud_audio_get_req_entity_cb(uint8_t rhport, tusb_control_request_t const * // Those are dummy values for now ret.bNrChannels = 1; - ret.bmChannelConfig = 0; + ret.bmChannelConfig = (audio_channel_config_t) 0; ret.iChannelNames = 0; TU_LOG2(" Get terminal connector\r\n"); |
