In some cases, when PWM frequency is low and dead_zone is set to a high value the max dead-time is exceeded and the calculations result in a dead_time of 0.
This adds a check and sets the dead_time to max value (255) if it gets calculated as 0 but dead_zone is non-zero.
In some cases, when PWM frequency is low and dead_zone is set to a high value the max dead-time is exceeded and the calculations result in a dead_time of 0. This adds a check and sets the dead_time to max value (255) if it gets calculated as 0 but dead_zone is non-zero.