diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-29 09:55:53 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-30 20:01:42 +0100 |
| commit | 1827a94e46494acd5577f2e834e56d6ba8f44413 (patch) | |
| tree | a9d0e54ccb12fd960939298ca6b15383b7461596 /Kod/bilbana/yc4/display/get_bytes.m | |
| parent | 47394320ad1e33f9a0302b6fa814ede543eba0ac (diff) | |
| download | tfyy51-1827a94e46494acd5577f2e834e56d6ba8f44413.tar.gz | |
Third wave - tested
Diffstat (limited to 'Kod/bilbana/yc4/display/get_bytes.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/get_bytes.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kod/bilbana/yc4/display/get_bytes.m b/Kod/bilbana/yc4/display/get_bytes.m index 76efc9c..87ef875 100644 --- a/Kod/bilbana/yc4/display/get_bytes.m +++ b/Kod/bilbana/yc4/display/get_bytes.m @@ -1,3 +1,3 @@ -function bytes = get_bytes(num): - bytes = [mod(num, 256), num ./ 256]; +function bytes = get_bytes(num) + bytes = [mod(num, 256), fix(num / 256)]; end |
