fix nx crash issue, led flash on extcomin

nx crash is because g_runbuffer is misused