stash
This commit is contained in:
parent
be54d8b8f7
commit
4fcdd35c41
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "lux.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
|
@ -44,7 +45,7 @@ extern "C" void lux_task(void *pvParameters) {
|
|||
for(volatile int i = 0; i < 100; i++);
|
||||
spi_read(1, 0x00, buf, 2, SPI_8BIT);
|
||||
|
||||
char hex[5];
|
||||
char hex[5] = {0};
|
||||
int_to_hex(buf[0], hex);
|
||||
int_to_hex(buf[1], hex + 2);
|
||||
hex[4] = '\0';
|
||||
|
|
Loading…
Reference in a new issue