null terminate USB strings

This commit is contained in:
Andrey 2023-08-25 15:18:41 -04:00 committed by rusefillc
parent 6fa7e64080
commit 13bbb72264
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,7 @@ static const uint8_t vcom_string2[] = {
'r', 0, 'u', 0, 's', 0, 'E', 0, 'F', 0, 'I', 0, ' ', 0, 'E', 0,
'n', 0, 'g', 0, 'i', 0, 'n', 0, 'e', 0, ' ', 0, 'M', 0, 'a', 0,
'n', 0, 'a', 0, 'g', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0,
' ', 0, 'E', 0, 'C', 0, 'U', 0
' ', 0, 'E', 0, 'C', 0, 'U', 0, 0
};
/*
@ -230,6 +230,7 @@ static uint8_t vcom_string3[] = {
'0', 0, '1', 0, '2', 0, '3', 0, '4', 0, '5', 0, '6', 0, '7', 0,
'8', 0, '9', 0, 'A', 0, 'B', 0, 'C', 0, 'D', 0, 'E', 0, 'F', 0,
'0', 0, '1', 0, '2', 0, '3', 0, '4', 0, '5', 0, '6', 0, '7', 0,
0
};
/*