示例#1
0
文件: cli.c 项目: modul/iris
static void do_abort()
{
	if (state_getState() == STOP) { // acknowledge error
		const Pin stop = PIN_STOP;
		if (PIO_Get(&stop)) {
			state_reset();
			OK();
		}
		else NOK();
	}
	else {
		state_reset();
		OK();
	}
}
示例#2
0
void hp9845_printer_device::device_reset()
{
	state_reset();
	m_cur_line = 0;
	m_inten = false;
	m_ibf = false;
	m_busy = false;
	update_flg();
	m_sts_handler(true);
}