rdl->validate = validate;
rdl->complete = complete;
rdl->write_char = write_char;
- rdl->status = RDLINE_INIT;
+ rdl->status = RDLINE_STOPPED;
#ifdef CONFIG_MODULE_RDLINE_HISTORY
cirbuf_init(&rdl->history, rdl->history_buf, 0, RDLINE_HISTORY_BUF_SIZE);
#endif /* CONFIG_MODULE_RDLINE_HISTORY */
void
rdline_stop(struct rdline * rdl)
{
- rdl->status = RDLINE_INIT;
+ rdl->status = RDLINE_STOPPED;
}
void
case KEY_RETURN:
case KEY_RETURN2:
rdline_get_buffer(rdl);
- rdl->status = RDLINE_INIT;
rdline_puts_P(rdl, PSTR("\r\n"));
#ifdef CONFIG_MODULE_RDLINE_HISTORY
if (rdl->history_cur_line != -1)