Skip to content

Fix get_period_inverse(0) so it doesn't crash#11334

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
eyal0:patch-1
Jul 25, 2018
Merged

Fix get_period_inverse(0) so it doesn't crash#11334
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
eyal0:patch-1

Conversation

@eyal0
Copy link
Contributor

@eyal0 eyal0 commented Jul 22, 2018

This fixes #11314

Description

This fixes a divide-by-zero crash. Divide-by-zero is invalid but the result of the divide-by-zero is never used anyway.

Benefits

Less crashing.

Related Issues

#11314

@eyal0 eyal0 closed this Jul 22, 2018
@eyal0 eyal0 reopened this Jul 22, 2018
@thinkyhead thinkyhead merged commit fbdbe53 into MarlinFirmware:bugfix-2.0.x Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants