public function platformprint() { $cr = 0; $exchange_extruder = $this->input->get('filament'); $this->load->helper('printer'); $exchange_extruder = $exchange_extruder == 'crossover' ? TRUE : FALSE; $cr = Printer_printFromSlice($exchange_extruder); $this->_return_cr($cr); return; }
public function printslice_temp() { $cr = 0; $exchange_extruder = 0; $array_temper = array(); $this->load->helper('printer'); $this->get_extra_info($array_temper, $exchange_extruder); $this->set_led(); $cr = Printer_printFromSlice($exchange_extruder, $array_temper); if ($cr != ERROR_OK) { $this->output->set_header('Location: /sliceupload/slice?callback'); return; } else { // $this->output->set_header('Location: /printdetail/status?id=slice'); $this->output->set_header('Location: /printdetail/status?id=' . CORESTATUS_VALUE_MID_SLICE); } return; }