diff --git a/tools/cmd/at/tty_io.go b/tools/cmd/at/tty_io.go index 989fa676e..bfd2e7ca0 100644 --- a/tools/cmd/at/tty_io.go +++ b/tools/cmd/at/tty_io.go @@ -112,7 +112,7 @@ func do_chunked_io(io_data *rc_io_data) (serialized_response []byte, err error) return err } if len(chunk) == 0 { - state = utils.IfElse(state == BEFORE_FIRST_ESCAPE_CODE_SENT && wants_streaming, WAITING_FOR_STREAMING_RESPONSE, WAITING_FOR_STREAMING_RESPONSE) + state = utils.IfElse(state == BEFORE_FIRST_ESCAPE_CODE_SENT && wants_streaming, WAITING_FOR_STREAMING_RESPONSE, WAITING_FOR_RESPONSE) transition_to_read() } else { queue_escape_code(chunk)