mcu: Provide some further help on common MCU shutdown errors
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -43,7 +43,7 @@ analog_in_event(struct timer *timer)
|
||||
return SF_RESCHEDULE;
|
||||
}
|
||||
if (a->value < a->min_value || a->value > a->max_value)
|
||||
shutdown("adc out of range");
|
||||
shutdown("ADC out of range");
|
||||
sched_wake_task(&analog_wake);
|
||||
a->next_begin_time += a->rest_time;
|
||||
a->timer.waketime = a->next_begin_time;
|
||||
|
||||
@@ -297,7 +297,7 @@ stats_update(uint32_t start, uint32_t cur)
|
||||
void
|
||||
command_emergency_stop(uint32_t *args)
|
||||
{
|
||||
shutdown("command request");
|
||||
shutdown("Command request");
|
||||
}
|
||||
DECL_COMMAND_FLAGS(command_emergency_stop, HF_IN_SHUTDOWN, "emergency_stop");
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ stepper_load_next(struct stepper *s, uint32_t min_next_time)
|
||||
if (unlikely(timer_is_before(s->next_step_time, min_next_time))) {
|
||||
if ((int32_t)(s->next_step_time - min_next_time)
|
||||
< (int32_t)(-timer_from_us(1000)))
|
||||
shutdown("stepper too far in past");
|
||||
shutdown("Stepper too far in past");
|
||||
s->time.waketime = min_next_time;
|
||||
} else {
|
||||
s->time.waketime = s->next_step_time;
|
||||
|
||||
Reference in New Issue
Block a user