From 523d5df0b2aae57fa3556102ec3e6758c5fb495e Mon Sep 17 00:00:00 2001 From: umarcor Date: Thu, 6 Jun 2019 19:09:44 +0200 Subject: [PATCH] feat(examples/vhdl/external_buffer): add check to exit_handler (C) --- examples/vhdl/external_buffer/src/main.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/examples/vhdl/external_buffer/src/main.c b/examples/vhdl/external_buffer/src/main.c index eca28b6fc..ddfeecd84 100644 --- a/examples/vhdl/external_buffer/src/main.c +++ b/examples/vhdl/external_buffer/src/main.c @@ -28,9 +28,20 @@ uint8_t read_char(uint8_t id, uint32_t i) { } static void exit_handler(void) { - int i; - for(i=0; i<3*length; i++) { - printf("%d: %d\n", i, D[0][i]); + int i, j, z, k; + uint8_t e, d; + for (j=0; j<3; j++) { + k += j; + for(i=0; i