Drop C-style 'void' argument

This commit is contained in:
Scott Lahteine
2019-09-16 20:31:08 -05:00
parent 7d8c38693f
commit f01f0d1956
174 changed files with 864 additions and 864 deletions

View File

@ -168,15 +168,15 @@ class I2CPositionEncoder {
bool passes_test(const bool report);
bool test_axis(void);
bool test_axis();
FORCE_INLINE int get_error_count(void) { return errorCount; }
FORCE_INLINE int get_error_count() { return errorCount; }
FORCE_INLINE void set_error_count(const int newCount) { errorCount = newCount; }
FORCE_INLINE uint8_t get_address() { return i2cAddress; }
FORCE_INLINE void set_address(const uint8_t addr) { i2cAddress = addr; }
FORCE_INLINE bool get_active(void) { return active; }
FORCE_INLINE bool get_active() { return active; }
FORCE_INLINE void set_active(const bool a) { active = a; }
FORCE_INLINE void set_inverted(const bool i) { invert = i; }
@ -219,10 +219,10 @@ class I2CPositionEncodersMgr {
public:
static void init(void);
static void init();
// consider only updating one endoder per call / tick if encoders become too time intensive
static void update(void) { LOOP_PE(i) encoders[i].update(); }
static void update() { LOOP_PE(i) encoders[i].update(); }
static void homed(const AxisEnum axis) {
LOOP_PE(i)

View File

@ -24,7 +24,7 @@
class dac084s085 {
public:
dac084s085();
static void begin(void);
static void begin();
static void setValue(const uint8_t channel, const uint8_t value);
private:
static void cshigh();

View File

@ -41,7 +41,7 @@ void fanmux_switch(const uint8_t e) {
#endif
}
void fanmux_init(void) {
void fanmux_init() {
SET_OUTPUT(FANMUX0_PIN);
#if PIN_EXISTS(FANMUX1)
SET_OUTPUT(FANMUX1_PIN);

View File

@ -26,4 +26,4 @@
*/
extern void fanmux_switch(const uint8_t e);
extern void fanmux_init(void);
extern void fanmux_init();

View File

@ -31,7 +31,7 @@
#include "tempstat.h"
#include "../../module/temperature.h"
void handle_status_leds(void) {
void handle_status_leds() {
static int8_t old_red = -1; // Invalid value to force LED initialization
static millis_t next_status_led_update_ms = 0;
if (ELAPSED(millis(), next_status_led_update_ms)) {

View File

@ -25,4 +25,4 @@
* Marlin general RGB LED support
*/
void handle_status_leds(void);
void handle_status_leds();

View File

@ -533,7 +533,7 @@ void MMU2::command(const uint8_t mmu_cmd) {
/**
* Wait for response from MMU
*/
bool MMU2::get_response(void) {
bool MMU2::get_response() {
while (cmd != MMU_CMD_NONE) idle();
while (!ready) {

View File

@ -61,7 +61,7 @@ private:
static void check_version();
static void command(const uint8_t cmd);
static bool get_response(void);
static bool get_response();
static void manage_response(const bool move_axes, const bool turn_off_nozzle);
#if HAS_LCD_MENU && ENABLED(MMU2_MENUS)

View File

@ -43,7 +43,7 @@
XPT2046 touch;
extern int8_t encoderDiff;
void XPT2046::init(void) {
void XPT2046::init() {
SET_INPUT(TOUCH_MISO_PIN);
SET_OUTPUT(TOUCH_MOSI_PIN);
SET_OUTPUT(TOUCH_SCK_PIN);

View File

@ -40,11 +40,11 @@ enum XPTCoordinate : uint8_t {
class XPT2046 {
public:
static void init(void);
static void init();
static uint8_t read_buttons();
bool getTouchPoint(uint16_t &x, uint16_t &y);
static bool isTouched();
inline void waitForRelease(void) { while (isTouched()) { /* nada */ } }
inline void waitForRelease() { while (isTouched()) { /* nada */ } }
inline void waitForTouch(uint16_t &x, uint16_t &y) { while (!getTouchPoint(x, y)) { /* nada */ } }
private:
static uint16_t getInTouch(const XPTCoordinate coordinate);