diff --git a/msgHandler.m b/msgHandler.m index f17e1e0..8cfbdf4 100644 --- a/msgHandler.m +++ b/msgHandler.m @@ -25,6 +25,13 @@ function msgHandler(msgData,fsm) % Pass the current PoseID to the FSM fsm.curPoseID = uint8(msgData(2)); fsm.ev_Req_Image_Capture(); + + % If none of the status bits are set, simply respond with an all-zeros + % message acknowledging receipt of the message. + else + bits = logical(zeros(1,64)); + msg = uint8(bi2de(reshape(bits,8,[])','left-msb'))'; + fwrite(fsm.dataStore.tcpConn,msg,'uint8'); end