Skip to content

Commit

Permalink
[dshot] remove (wrong) assert used for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Sep 8, 2020
1 parent 9b13fc7 commit 3267f13
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sw/airborne/arch/chibios/modules/actuators/esc_dshot.c
Expand Up @@ -121,9 +121,6 @@ static size_t getTimerWidth(const PWMDriver *pwmp);
*/
void dshotStart(DSHOTDriver *driver, const DSHOTConfig *config)
{
_Static_assert((void *) &driver->dsdb == (void *) &driver->dsdb.widths16);
_Static_assert((void *) &driver->dsdb.widths32 == (void *) &driver->dsdb.widths16);

memset((void *) &driver->dsdb, 0, sizeof(driver->dsdb));
const size_t timerWidthInBytes = getTimerWidth(config->pwmp);

Expand Down

0 comments on commit 3267f13

Please sign in to comment.