Skip to content
Browse files

clock.c: make clock_10ms() and clock_250ms() static.

These shouldn't be called by outside code, use clock() instead.
Surprisingly, this saves another 12 bytes binary size.
  • Loading branch information...
1 parent f06b013 commit 8f94d4b4210617e48793ee9785ecb9f0988b67f9 @Traumflug committed
Showing with 2 additions and 4 deletions.
  1. +2 −2 clock.c
  2. +0 −2 clock.h
View
4 clock.c
@@ -22,7 +22,7 @@
called from clock_10ms(), do not call directly
*/
-void clock_250ms() {
+static void clock_250ms() {
#ifndef NO_AUTO_IDLE
if (temp_all_zero()) {
if (psu_timeout > (30 * 4)) {
@@ -67,7 +67,7 @@ void clock_250ms() {
called from clock(), do not call directly
*/
-void clock_10ms() {
+static void clock_10ms() {
// reset watchdog
wd_reset();
View
2 clock.h
@@ -1,8 +1,6 @@
#ifndef _CLOCK_H
#define _CLOCK_H
-void clock_250ms(void);
-void clock_10ms(void);
void clock(void);
#endif /* _CLOCK_H */

0 comments on commit 8f94d4b

Please sign in to comment.
Something went wrong with that request. Please try again.