M109 wait until cooling
Is possible to add in M109 code function for wait until cooling? Wait until the temperature is max defined number or lower.
For example: after printing on 230°C i set 50°C in M109 code with defined prefix, firmware waiting until temperature decreaset to 50°C or lower. Then continue to next code.
I need this to automaticaly turn off printer trought atx power off after hotend is cooled to safe temperature.