spi: fix formatted bits per word truncation in spi_tostring()

closes #31.
This commit is contained in:
Vanya A. Sergeev
2020-09-03 02:37:24 -05:00
parent 5b81b89926
commit 5ecec648b2
+1 -1
View File
@@ -273,7 +273,7 @@ int spi_tostring(spi_t *spi, char *str, size_t len) {
uint32_t max_speed;
char max_speed_str[16];
uint8_t bits_per_word;
char bits_per_word_str[2];
char bits_per_word_str[4];
spi_bit_order_t bit_order;
char bit_order_str[16];
uint8_t extra_flags;