Homing while printing

Hello,
we build and currently testing the latest “edge” (code refactor) version of smoothieware and a strange behaviour we don’t expect happens: during printing, the firmware manage the Home command, from both the menu and from web interface.
Shall this command be inhibited during printing?
The problem is that it is possible to home all axis and we see that after the homing the firmware continues to process the gcode (there is no machine stops or error) like if the home G28 code is injected inside the normal flow of Gcodes.
This cause a potential crash of the hotend into the printed parts, considering that the Z value was not updated every gcode lines and probably a complete home with a partial printed part on the bed is not a good idea anyway.

There is an option to inhibit some type of commands during print?

Imported from wikidot

Hi.

There is no option to inhibit any command during printing.
It’s even difficult for the firmware to know if it’s “printing” because there are several methods of doing so, and some of them can not be distinguished from “jogging”.

Cheers.