Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 5150cb558181170d97e5d118ea0ee6d9b2282996 Mon Sep 17 00:00:00 2001
- From: David P Hilton <[email protected]>
- Date: Mon, 31 Dec 2012 11:01:50 -0700
- Subject: [PATCH] inlined some functions
- ---
- programs/hexbright_jrt/hexbright_jrt.ino | 16 ++++++++--------
- 1 files changed, 8 insertions(+), 8 deletions(-)
- mode change 100644 => 100755 programs/hexbright_jrt/hexbright_jrt.ino
- diff --git a/programs/hexbright_jrt/hexbright_jrt.ino b/programs/hexbright_jrt/hexbright_jrt.ino
- old mode 100644
- new mode 100755
- index c830f47..bcd7304
- --- a/programs/hexbright_jrt/hexbright_jrt.ino
- +++ b/programs/hexbright_jrt/hexbright_jrt.ino
- @@ -218,7 +218,7 @@ void loop()
- }
- }
- -void oneSecondLoop()
- +inline void oneSecondLoop()
- {
- const unsigned long time = millis();
- @@ -249,7 +249,7 @@ void checkAccel()
- resetAccelTimeout();
- }
- -void powerOff()
- +inline void powerOff()
- {
- // Don't unnecessarily update the EEPROM
- byte eepromLastOnMode = EEPROM.read(EEPROM_LAST_ON_MODE);
- @@ -261,27 +261,27 @@ void powerOff()
- hb.shutdown();
- }
- -void setLightOff()
- +inline void setLightOff()
- {
- setLight(MODE_OFF);
- }
- -void setLightLow()
- +inline void setLightLow()
- {
- setLight(MODE_LOW);
- }
- -void setLightMed()
- +inline void setLightMed()
- {
- setLight(MODE_MED);
- }
- -void setLightHigh()
- +inline void setLightHigh()
- {
- setLight(MODE_HIGH);
- }
- -void setLightBlinking()
- +inline void setLightBlinking()
- {
- setLight(MODE_BLINKING);
- }
- @@ -337,4 +337,4 @@ void resetAccelTimeout()
- }
- -
- +
- --
- 1.7.9
Advertisement
Add Comment
Please, Sign In to add comment