dshot: imxrt: fix unsigned to uint8_t in dshot_motor_data_set

This commit is contained in:
Jacob Dahl
2026-01-27 15:39:49 -09:00
parent 9ad690dc85
commit 6bc0e0c74e
@@ -613,7 +613,7 @@ uint64_t dshot_expand_data(uint16_t packet)
* bit 12 - dshot telemetry enable/disable * bit 12 - dshot telemetry enable/disable
* bits 13-16 - XOR checksum * bits 13-16 - XOR checksum
**/ **/
void dshot_motor_data_set(unsigned channel, uint16_t throttle, bool telemetry) void dshot_motor_data_set(uint8_t channel, uint16_t throttle, bool telemetry)
{ {
if (channel < DSHOT_TIMERS && dshot_inst[channel].init) { if (channel < DSHOT_TIMERS && dshot_inst[channel].init) {
uint16_t csum_data; uint16_t csum_data;