From b0524947e5a86bdbdd58dab42de3363a627e6910 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Jun 2016 21:33:50 -0400 Subject: sched: Use uint_fast8_t for return type of timers Some architectures are faster passing regular integers than 8bit integers. Use uint_fast8_t so that the architecture chooses the appropriate type. Signed-off-by: Kevin O'Connor --- src/endstop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/endstop.c') diff --git a/src/endstop.c b/src/endstop.c index 6f155cda..c8aa58e6 100644 --- a/src/endstop.c +++ b/src/endstop.c @@ -23,7 +23,7 @@ struct end_stop { enum { ESF_HOMING=1, ESF_REPORT=2 }; // Timer callback for an end stop -static uint8_t +static uint_fast8_t end_stop_event(struct timer *t) { struct end_stop *e = container_of(t, struct end_stop, time); -- cgit v1.2.3-70-g09d2