From 71fd812137ee0186033fca1548f6627445ecba98 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 6 Mar 2019 13:49:56 +0900 Subject: [PATCH] Minor fix to NetworkTest --- src/test/UDPC_NetworkTest.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/test/UDPC_NetworkTest.c b/src/test/UDPC_NetworkTest.c index f05716d..d3b1819 100644 --- a/src/test/UDPC_NetworkTest.c +++ b/src/test/UDPC_NetworkTest.c @@ -50,15 +50,11 @@ void updateSendBuffer(uint32_t *index, char *buffer) *index = 0; } - uint32_t temp; + uint32_t temp = 1; for(int x = 0; x < 6; ++x) { - temp = 1; - for(int y = 0; y < x; ++y) - { - temp *= 26; - } buffer[x] = (*index / temp) % 26 + 'a'; + temp *= 26; } }