Skip to content

[1.1.x] Validate that X/Y_PROBE_OFFSET_FROM_EXTRUDER are integers#11255

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-1.1.xfrom
cmroche:bugfix-1.1.x
Jul 13, 2018
Merged

[1.1.x] Validate that X/Y_PROBE_OFFSET_FROM_EXTRUDER are integers#11255
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-1.1.xfrom
cmroche:bugfix-1.1.x

Conversation

@cmroche
Copy link

@cmroche cmroche commented Jul 12, 2018

Requirements

  • Filling out this template is required. Pull Requests without a clear description may be closed at the maintainers' discretion.

Description

Addition of two static_asserts into SanityCheck.h which validate that the X_PROBE_OFFSET_FROM_EXTRUDER and Y_PROBE_OFFSET_FROM_EXTRUDER values are infact integers, issuing an error in the event that a float our double is provided erroneously.

Benefits

Without these checks it is possible to compile (without bed level debugging enabled) and the UBL system will mostly run. However any G29 Jx commands will fail with the error "Could not complete LSF!".

By adding this error the misconfiguration becomes immediately clear on compilation preventing a user from reaching the point of the error on G29.

Related Issues

Discussed in #11245

@cmroche cmroche changed the title Validate that X/Y_PROBE_OFFSET_FROM_EXTRUDER are integers [1.1.x] Validate that X/Y_PROBE_OFFSET_FROM_EXTRUDER are integers Jul 12, 2018
@thinkyhead thinkyhead merged commit 3b5c81b into MarlinFirmware:bugfix-1.1.x Jul 13, 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