From 6ad5c01d9a3d323e34a547283e7a534f7c3b9d15 Mon Sep 17 00:00:00 2001
From: batt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Wed, 2 Sep 2009 15:31:20 +0000
Subject: [PATCH] Remove warning during test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2865 38d2e660-2303-0410-9eaa-f027e97ec537
---
 bertos/cpu/avr/drv/ser_avr.c | 5 ++---
 bertos/mware/formatwr.c      | 4 +++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/bertos/cpu/avr/drv/ser_avr.c b/bertos/cpu/avr/drv/ser_avr.c
index c94bf6b0..746bb527 100644
--- a/bertos/cpu/avr/drv/ser_avr.c
+++ b/bertos/cpu/avr/drv/ser_avr.c
@@ -454,10 +454,9 @@ static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct
 	 * - as input but tied high forever!
 	 * This driver set the pin as output.
 	 */
-	#if (ARCH & ARCH_NIGHTTEST)
-		#warning __FILTER_NEXT_WARNING__
+	#if !(ARCH & ARCH_NIGHTTEST)
+		#warning SPI SS pin set as output for proper operation, check schematics for possible conflicts.
 	#endif
-	#warning SPI SS pin set as output for proper operation, check schematics for possible conflicts.
 	ATOMIC(SPI_DDR |= BV(SPI_SS_BIT));
 
 	ATOMIC(SPI_DDR &= ~BV(SPI_MISO_BIT));
diff --git a/bertos/mware/formatwr.c b/bertos/mware/formatwr.c
index 8c79d81f..133a1932 100644
--- a/bertos/mware/formatwr.c
+++ b/bertos/mware/formatwr.c
@@ -108,7 +108,9 @@
 
 	/*bernie: save some memory, who cares about floats with lots of decimals? */
 	#define FRMWRI_BUFSIZE 134
-	#warning 134 is too much, the code must be fixed to have a lower precision limit
+	#if !(ARCH & ARCH_NIGHTTEST)
+		#warning 134 is too much, the code must be fixed to have a lower precision limit
+	#endif
 #else
 	/*
 	 * Conservative estimate. Should be (probably) 12 (which is the size necessary
-- 
2.34.1