diff options
| author | David Thorén <davth346@student.liu.se> | 2019-11-13 12:52:41 +0100 |
|---|---|---|
| committer | David Thorén <davth346@student.liu.se> | 2019-11-13 12:52:41 +0100 |
| commit | c2ce165db06ac1e39221b5a8d788c0b49998111e (patch) | |
| tree | 89115bb92443e969827a0b99db5536ade033e858 /Kod/bilbana/yc4/display/get_response.m | |
| parent | d413cfbac66ff6de32a916d61af6f4ba77fd2eb6 (diff) | |
| download | tfyy51-c2ce165db06ac1e39221b5a8d788c0b49998111e.tar.gz | |
Add working display-code
Diffstat (limited to 'Kod/bilbana/yc4/display/get_response.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/get_response.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/display/get_response.m b/Kod/bilbana/yc4/display/get_response.m index 1e3e6af..0c77a00 100644 --- a/Kod/bilbana/yc4/display/get_response.m +++ b/Kod/bilbana/yc4/display/get_response.m @@ -5,9 +5,14 @@ function [ack, start_code, responses] = get_response(display_data) ack = false; start_code = ''; -bcc = display_data(length(display_data)); responses = []; +if isempty(display_data) + return +end +bcc = display_data(length(display_data)); + + pointer = 1; if display_data(pointer) == 6 |
