From b069fb8bbaefb63821e0277aedb9643b7eb19363 Mon Sep 17 00:00:00 2001
From: iceman1001 <iceman@iuse.se>
Date: Fri, 14 Oct 2016 15:47:40 +0200
Subject: [PATCH] syntax suger and forgot to add method declaration to
 headerfile

---
 armsrc/appmain.c | 4 +---
 armsrc/apps.h    | 1 +
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/armsrc/appmain.c b/armsrc/appmain.c
index 4d6a5fdf..f8d12da1 100644
--- a/armsrc/appmain.c
+++ b/armsrc/appmain.c
@@ -182,9 +182,7 @@ static int ReadAdc(int ch)
 
 int AvgAdc(int ch) // was static - merlok
 {
-	int i;
-	int a = 0;
-
+	int i, a = 0;
 	for(i = 0; i < 32; ++i)
 		a += ReadAdc(ch);
 
diff --git a/armsrc/apps.h b/armsrc/apps.h
index 87d0ffb2..d119d239 100644
--- a/armsrc/apps.h
+++ b/armsrc/apps.h
@@ -46,6 +46,7 @@ void SamyRun(void);
 //void DbpIntegers(int a, int b, int c);
 void DbpString(char *str);
 void Dbprintf(const char *fmt, ...);
+void DbprintfEx(uint32_t cmd, const char *fmt, ...);
 void Dbhexdump(int len, uint8_t *d, bool bAsci);
 
 // ADC Vref = 3300mV, and an (10M+1M):1M voltage divider on the HF input can measure voltages up to 36300 mV
-- 
2.39.5