text: /**
   * MK4duo Firmware for 3D Printer, Laser and CNC
   *
   * Based on Marlin, Sprinter and grbl
   * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
   * Copyright (c) 2013 Alberto Cotronei @MagoKimbra
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program. If not, see <http://www.gnu.org/licenses/>.
   *
   */
  
  /**
   * mcode
   *
   * Copyright (c) 2017 Alberto Cotronei @MagoKimbra
   */
  
  #if HAS_COOLERS
  
  #define CODE_M192
  
  /**
   * M192: Sxxx Wait for cooler current temp to reach target temp.
   */
  inline void gcode_M192() {
    if (printer.debugDryrun() || printer.debugSimulation()) return;
  
    LCD_MESSAGEPGM(MSG_COOLER_COOLING);
    if (parser.seen('S'))
      coolers[0]->set_target_temp(parser.value_celsius());
    else return;
    coolers[0]->wait_for_target(false);
  
  }
  
  #endif // HAS_HEATER_COOLER
  