fixed output buffer issue, now in sync with relay/GPIO