From e53ce519ff0a8e643dab31b2627af5b1968e6011 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 13 Feb 2013 21:32:01 +0000 Subject: [PATCH] [stock] 16bytes flash saved --- src/open9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index ac9d6c106..c0477721a 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -598,7 +598,7 @@ int16_t calc1000toRESX(int16_t x) // improve calc time by Pat MacKenzie int16_t calcRESXto1000(int16_t x) { // *1000/1024 = x - x/32 + x/128 - return (x - x/32 + x/128); + return (x - (x>>5) + (x>>7)); } #endif