Skip to content

Commit

Permalink
Multi-line comments cleanup (#19535)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwewer0 authored Sep 28, 2020
1 parent 05517e2 commit 4424645
Show file tree
Hide file tree
Showing 131 changed files with 11 additions and 176 deletions.
5 changes: 0 additions & 5 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* - Extra features
*
* Advanced settings can be found in Configuration_adv.h
*
*/
#define CONFIGURATION_H_VERSION 020007

Expand Down Expand Up @@ -855,7 +854,6 @@
* - For simple switches connect...
* - normally-closed switches to GND and D32.
* - normally-open switches to 5V and D32.
*
*/
//#define Z_MIN_PROBE_PIN 32 // Pin 32 is the RAMPS default

Expand Down Expand Up @@ -1567,7 +1565,6 @@
*
* Caveats: The ending Z should be the same as starting Z.
* Attention: EXPERIMENTAL. G-code arguments may change.
*
*/
//#define NOZZLE_CLEAN_FEATURE

Expand Down Expand Up @@ -1720,7 +1717,6 @@
*
* SD Card support is disabled by default. If your controller has an SD slot,
* you must uncomment the following option or it won't work.
*
*/
//#define SDSUPPORT

Expand Down Expand Up @@ -2343,7 +2339,6 @@
* *** CAUTION ***
*
* LED Type. Enable only one of the following two options.
*
*/
//#define RGB_LED
//#define RGBW_LED
Expand Down
3 changes: 0 additions & 3 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* Some of these settings can damage your printer if improperly set!
*
* Basic settings can be found in Configuration.h
*
*/
#define CONFIGURATION_ADV_H_VERSION 020007

Expand Down Expand Up @@ -738,7 +737,6 @@
* | 4 3 | 1 4 | 2 1 | 3 2 |
* | | | | |
* | 1 2 | 2 3 | 3 4 | 4 1 |
*
*/
#ifndef Z_STEPPER_ALIGN_XY
//#define Z_STEPPERS_ORIENTATION 0
Expand Down Expand Up @@ -1954,7 +1952,6 @@
* Be sure to turn off auto-retract during filament change.
*
* Note that M207 / M208 / M209 settings are saved to EEPROM.
*
*/
//#define FWRETRACT
#if ENABLED(FWRETRACT)
Expand Down
1 change: 1 addition & 0 deletions Marlin/src/HAL/AVR/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/AVR/Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
* readMicroseconds() - Get the last-written servo pulse width in microseconds.
* attached() - Return true if a servo is attached.
* detach() - Stop an attached servo from pulsing its i/o pin.
*
*/

#ifdef __AVR__
Expand Down
1 change: 1 addition & 0 deletions Marlin/src/HAL/AVR/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/DUE/HAL_SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@
*
* All of the above can be avoided by defining FORCE_SOFT_SPI to force the
* display to use software SPI.
*
*/

void spiInit(uint8_t spiRate=6) { // Default to slowest rate if not specified)
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_shared_hw_spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/

#ifdef __SAM3X8E__
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/DUE/eeprom_flash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
* per page. We can't emulate EE endurance with FLASH for all
* bytes, but we can emulate endurance for a given percent of
* bytes.
*
*/

//#define EE_EMU_DEBUG
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/DUE/pinsDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,4 @@ void pwm_details(int32_t pin) {
* ----------------+--------
* ID | PB11
* VBOF | PB10
*
*/
1 change: 1 addition & 0 deletions Marlin/src/HAL/ESP32/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

Expand Down
1 change: 1 addition & 0 deletions Marlin/src/HAL/ESP32/ota.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/LINUX/include/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* Generic RingBuffer
* T type of the buffer array
* S size of the buffer (must be power of 2)
*
*/
template <typename T, uint32_t S> class RingBuffer {
public:
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/LINUX/servo_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
* Version 2 Copyright (c) 2009 Michael Margolis. All right reserved.
*
* The only modification was to update/delete macros to match the LPC176x.
*
*/

#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/LPC1768/Servo.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
* Version 2 Copyright (c) 2009 Michael Margolis. All right reserved.
*
* The only modification was to update/delete macros to match the LPC176x.
*
*/

#include <Servo.h>
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/LPC1768/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#pragma once

/**
*
* HAL For LPC1768
*/

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/SAMD51/QSPIFlash.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* THE SOFTWARE.
*
* Derived from Adafruit_SPIFlash class with no SdFat references
*
*/

#pragma once
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/SAMD51/pinsDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,4 @@ void pwm_details(int32_t pin) {
* 93 | PA10 | QSPI: IO2
* 94 | PA11 | QSPI: IO3
* 95 | PB31 | SD: DETECT
*
*/
1 change: 0 additions & 1 deletion Marlin/src/HAL/STM32F1/onboard_sd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* No restriction on use. You can use, modify and redistribute it for
* personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY.
* Redistributions of source code must retain the above copyright notice.
*
*/

#include "../../inc/MarlinConfig.h"
Expand Down
2 changes: 0 additions & 2 deletions Marlin/src/HAL/STM32_F4_F7/STM32F7/TMC2660.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/

#if defined(STM32GENERIC) && defined(STM32F7)
Expand Down Expand Up @@ -662,7 +661,6 @@ boolean TMC26XStepper::isEnabled() { return !!(chopper_config_register & T_OFF_P
/**
* reads a value from the TMC26X status register. The value is not obtained directly but can then
* be read by the various status routines.
*
*/
void TMC26XStepper::readStatus(char read_value) {
uint32_t old_driver_configuration_register_value = driver_configuration_register_value;
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/STM32_F4_F7/STM32F7/TMC2660.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
#pragma once

Expand Down
1 change: 1 addition & 0 deletions Marlin/src/HAL/TEENSY35_36/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

Expand Down
1 change: 1 addition & 0 deletions Marlin/src/HAL/TEENSY40_41/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/shared/servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
* readMicroseconds() - Get the last-written servo pulse width in microseconds.
* attached() - Return true if a servo is attached.
* detach() - Stop an attached servo from pulsing its i/o pin.
*
*/

#include "../../inc/MarlinConfig.h"
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/shared/servo.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
*/

/**
*
* A servo is activated by creating an instance of the Servo class passing the desired pin to the attach() method.
* The servos are pulsed in the background using the value most recently written using the write() method
*
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/core/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@
* However, internal to Marlin E0/T0 is the first tool, and
* most board silkscreens say "E0." Zero-based labels will
* make these indexes consistent but this defies expectation.
*
*/
#if ENABLED(NUMBER_TOOLS_FROM_0)
#define LCD_FIRST_TOOL 0
Expand Down
2 changes: 0 additions & 2 deletions Marlin/src/feature/bedlevel/ubl/ubl_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@
}

/**
*
* Generic case of a line crossing both X and Y Mesh lines.
*
*/

xy_int8_t cnt = (istart - iend).ABS();
Expand Down
4 changes: 0 additions & 4 deletions Marlin/src/feature/encoder_i2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,6 @@ int8_t I2CPositionEncodersMgr::parse() {
* Y Report on Y axis encoder, if present.
* Z Report on Z axis encoder, if present.
* E Report on E axis encoder, if present.
*
*/
void I2CPositionEncodersMgr::M860() {
if (parse()) return;
Expand Down Expand Up @@ -846,7 +845,6 @@ void I2CPositionEncodersMgr::M860() {
* Y Report on Y axis encoder, if present.
* Z Report on Z axis encoder, if present.
* E Report on E axis encoder, if present.
*
*/
void I2CPositionEncodersMgr::M861() {
if (parse()) return;
Expand Down Expand Up @@ -875,7 +873,6 @@ void I2CPositionEncodersMgr::M861() {
* Y Report on Y axis encoder, if present.
* Z Report on Z axis encoder, if present.
* E Report on E axis encoder, if present.
*
*/
void I2CPositionEncodersMgr::M862() {
if (parse()) return;
Expand Down Expand Up @@ -905,7 +902,6 @@ void I2CPositionEncodersMgr::M862() {
* Y Report on Y axis encoder, if present.
* Z Report on Z axis encoder, if present.
* E Report on E axis encoder, if present.
*
*/
void I2CPositionEncodersMgr::M863() {
if (parse()) return;
Expand Down
4 changes: 0 additions & 4 deletions Marlin/src/feature/mmu2/mmu2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,11 @@ void MMU2::tool_change(const uint8_t index) {
}

/**
*
* Handle special T?/Tx/Tc commands
*
* T? Gcode to extrude shouldn't have to follow, load to extruder wheels is done automatically
* Tx Same as T?, except nozzle doesn't have to be preheated. Tc must be placed after extruder nozzle is preheated to finish filament load.
* Tc Load to nozzle after filament was prepared by Tx and extruder nozzle is already heated.
*
*/
void MMU2::tool_change(const char* special) {
if (!enabled) return;
Expand Down Expand Up @@ -922,9 +920,7 @@ void MMU2::filament_runout() {
}

/**
*
* Switch material and load to nozzle
*
*/
bool MMU2::load_filament_to_nozzle(const uint8_t index) {

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/feature/twibus.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ typedef void (*twiRequestFunc_t)();
* For more information see
* - https://marlinfw.org/docs/gcode/M260.html
* - https://marlinfw.org/docs/gcode/M261.html
*
*/
class TWIBus {
private:
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/gcode/bedlevel/abl/G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@
* E By default G29 will engage the Z probe, test the bed, then disengage.
* Include "E" to engage/disengage the Z probe for each sample.
* There's no extra effect if you have a fixed Z probe.
*
*/
G29_TYPE GcodeSuite::G29() {

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/gcode/bedlevel/mbl/G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ inline void echo_not_entered(const char c) { SERIAL_CHAR(c); SERIAL_ECHOLNPGM("
* S3 In Jn Zn.nn Manually modify a single point
* S4 Zn.nn Set z offset. Positive away from bed, negative closer to bed.
* S5 Reset and disable mesh
*
*/
void GcodeSuite::G29() {

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/gcode/calibrate/G28.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
* X Home to the X endstop
* Y Home to the Y endstop
* Z Home to the Z endstop
*
*/
void GcodeSuite::G28() {
DEBUG_SECTION(log_G28, "G28", DEBUGGING(LEVELING));
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/gcode/control/M999.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*
* Sending "M999 S1" will resume printing without flushing the
* existing command buffer.
*
*/
void GcodeSuite::M999() {
marlin_state = MF_RUNNING;
Expand Down
2 changes: 0 additions & 2 deletions Marlin/src/gcode/feature/L6470/M906.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "../../../core/debug_out.h"

/**
*
* M906: report or set KVAL_HOLD which sets the maximum effective voltage provided by the
* PWMs to the steppers
*
Expand All @@ -56,7 +55,6 @@
*
* L6470 is used in the STEP-CLOCK mode. KVAL_HOLD is the only KVAL_xxx
* that affects the effective voltage seen by the stepper.
*
*/

/**
Expand Down
Loading

0 comments on commit 4424645

Please sign in to comment.