update ringbuffer and add printf to ram