Oscbs 33 ci zephyr port (#375)

* zephyr: twister build fixes/patches

* zephyr: hack: suppress bvlc test (build failures)

Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
This commit is contained in:
Greg Shue
2023-01-05 16:53:29 -08:00
committed by GitHub
parent c9efd0b84d
commit b8d345679b
9 changed files with 34 additions and 19 deletions
+3 -2
View File
@@ -96,9 +96,10 @@ size_t cobs_encode(uint8_t *buffer,
size_t read_index = 0;
size_t write_index = 1;
uint8_t code = 1;
uint8_t data, last_code;
uint8_t data = 0;
uint8_t last_code = 0;
if (buffer_size < 1) {
if ((buffer_size < 1) || (length < 1)) {
/* error - buffer too small */
return 0;
}