diff options
Diffstat (limited to 'Kod/bilbana/yc4/display')
| -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 |
