style changes, add .clang-format config file
This commit is contained in:
parent
1c8e725282
commit
2fb61c4be3
4 changed files with 56 additions and 42 deletions
|
|
@ -1,15 +1,14 @@
|
|||
#include "config.h"
|
||||
#ifdef HELP
|
||||
#ifndef HELP_H
|
||||
#include <Arduino.h>
|
||||
#include "main.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
void help(String);
|
||||
void help_setup();
|
||||
const struct Command help_commands[] = {
|
||||
{"help", help},
|
||||
END_COMMAND
|
||||
};
|
||||
END_COMMAND};
|
||||
#define HELP_H
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
#include "stage.h"
|
||||
#include "config.h"
|
||||
#include <limits.h>
|
||||
#include <Arduino.h>
|
||||
#include <limits.h>
|
||||
#ifdef SUPPORT_EEPROM
|
||||
#include <EEPROM.h>
|
||||
#include <EEPROM.h>
|
||||
#else
|
||||
#include "dummyEEPROM.h"
|
||||
#include "dummyEEPROM.h"
|
||||
#endif
|
||||
#include "main.h"
|
||||
|
||||
|
|
@ -164,6 +164,7 @@ void stage_loop()
|
|||
{
|
||||
scaled_t = elapsed_t;
|
||||
}
|
||||
|
||||
stage_moving = false;
|
||||
EACH_MOTOR
|
||||
{
|
||||
|
|
@ -179,6 +180,7 @@ void stage_loop()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!stage_moving && notify_on_stop)
|
||||
{
|
||||
Serial.println("stopped");
|
||||
|
|
@ -206,6 +208,7 @@ void stage_mry(String command)
|
|||
{
|
||||
stage_move_single_axis(1, command);
|
||||
}
|
||||
|
||||
void stage_mrz(String command)
|
||||
{
|
||||
stage_move_single_axis(2, command);
|
||||
|
|
@ -276,7 +279,7 @@ void stage_ramp_time(String command)
|
|||
|
||||
void update_blocking_moves(String command)
|
||||
{
|
||||
char * args[1];
|
||||
char *args[1];
|
||||
parse_arguments(args, command, 1);
|
||||
if (args[0][0] == '?')
|
||||
{
|
||||
|
|
@ -307,7 +310,7 @@ void stage_stop(String command)
|
|||
void is_stage_moving(String command)
|
||||
{
|
||||
//TODO: should I bother checking for a ?
|
||||
Serial.println(stage_moving?"true":"false");
|
||||
Serial.println(stage_moving ? "true" : "false");
|
||||
}
|
||||
|
||||
void activate_notify_on_stop(String command)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue