summaryrefslogtreecommitdiff
path: root/src/helpers.c
diff options
context:
space:
mode:
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;
}