We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757424c commit c0f75b1Copy full SHA for c0f75b1
platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c
@@ -100,6 +100,7 @@ int up_dshot_init(uint32_t channel_mask, unsigned dshot_pwm_freq)
100
}
101
102
// we know the uint8_t* cast to uint32_t* is fine, since we're aligned to cache line size
103
+#pragma GCC diagnostic push
104
#pragma GCC diagnostic ignored "-Wcast-align"
105
dshot_burst_buffer[timer] = (uint32_t *)&dshot_burst_buffer_array[buffer_offset];
106
#pragma GCC diagnostic pop
0 commit comments