From 7f630f4781592a46b8b1105da834acf1ca83bf72 Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Sat, 18 Aug 2012 19:06:24 +0000 Subject: [PATCH] recover 2 bytes of flash (better than nothing) --- src/templates.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates.cpp b/src/templates.cpp index 2a89e7859..560bddcd5 100644 --- a/src/templates.cpp +++ b/src/templates.cpp @@ -129,14 +129,15 @@ void applyTemplate(uint8_t idx) for(uint8_t j=0; j<4; j++) if(CC(i+1)==j+1) icc[j]=i; switch (idx) { - // Clear Mixes case TMPL_CLEAR_MIXES: + case TMPL_SIMPLE_4CH: + case TMPL_HELI_SETUP: clearMixes(); - break; + } + switch (idx) { // Simple 4-Ch case TMPL_SIMPLE_4CH: - clearMixes(); setDest(ICC(STK_RUD), MIXSRC_Rud); setDest(ICC(STK_ELE), MIXSRC_Ele); setDest(ICC(STK_THR), MIXSRC_Thr); @@ -178,7 +179,6 @@ void applyTemplate(uint8_t idx) // Heli Setup case TMPL_HELI_SETUP: - clearMixes(); //This time we want a clean slate clearCurves(); //Set up Mixes