summaryrefslogtreecommitdiff
path: root/src/helpers.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 03:14:50 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 03:14:50 +0100
commit4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a (patch)
treec01e5d0ab22eb618eef08ea85b9e233a87577d4c /src/helpers.c
parentd9b9b3e71397a2da9e16cbee75c4954105237363 (diff)
downloadanalog_instruments-4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a.tar.gz
fix commands, add fade
Diffstat (limited to 'src/helpers.c')
-rw-r--r--src/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers.c b/src/helpers.c
index b8c3373..61c4bc5 100644
--- a/src/helpers.c
+++ b/src/helpers.c
@@ -7,8 +7,8 @@
#include "helpers.h"
uint8_t hex_to_byte(char c[]) {
- uint8_t ret = hex_to_halfbyte(c[0]);
- ret += 16 * hex_to_halfbyte(c[1]);
+ uint8_t ret = hex_to_halfbyte(c[1]);
+ ret += 16 * hex_to_halfbyte(c[0]);
return ret;
}