mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
lightbar: Removing unused space in ramp table
We don't need the upper two bytes of any elements in the ramp table, since none of them are big enough to flow into them. This saves us another 60-70 bytes. BUG=None BRANCH=ToT TEST=Manual, visual inspection Change-Id: Id9d03b8f63e61172c5cc6b36b010582957c7bb22 Signed-off-by: Eric Caruso <ejcaruso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/220595 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
fcdbcfe5e0
commit
71df668d46
@@ -282,7 +282,7 @@ void demo_tap(void)
|
||||
/******************************************************************************/
|
||||
|
||||
#define F(x) (x * FP_SCALE)
|
||||
static const int _ramp_table[] = {
|
||||
static const uint16_t _ramp_table[] = {
|
||||
F(0.000000), F(0.002408), F(0.009607), F(0.021530), F(0.038060),
|
||||
F(0.059039), F(0.084265), F(0.113495), F(0.146447), F(0.182803),
|
||||
F(0.222215), F(0.264302), F(0.308658), F(0.354858), F(0.402455),
|
||||
|
||||
Reference in New Issue
Block a user