Skip to content

Commit bfc1238

Browse files
committed
add a new tini<->server command, noop(9)
1 parent bfcd758 commit bfc1238

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/drink_machine_comm.erl

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ loop (normal_op, State) ->
106106
loop(normal_op, State);
107107
{tcp, Socket, Data} ->
108108
case receive_response(Data, State) of
109+
noop -> ok;
109110
{ok, Response} ->
110111
drink_machine:got_response(State#dmcomm_state.machine, Response);
111112
{error, Reason} ->
@@ -190,5 +191,7 @@ receive_response(<<$8, Remain/binary>>, _State) ->
190191
{Temperature, _Rest} ->
191192
{ok, {temperature, erlang:universaltime(), Temperature}}
192193
end;
194+
receive_response(<<$9, _/binary>>, _State) ->
195+
noop;
193196
receive_response(_Data, _State) ->
194197
{error, unknown}.

0 commit comments

Comments
 (0)