From 25d6e247781d6c3590bf0f2721e87941bfe4c7cb Mon Sep 17 00:00:00 2001 From: espr14 Date: Tue, 22 Dec 2020 14:16:20 +0100 Subject: [PATCH] Add comments --- Firmware/xyzcal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firmware/xyzcal.cpp b/Firmware/xyzcal.cpp index f99c0c9b3..22cec6184 100644 --- a/Firmware/xyzcal.cpp +++ b/Firmware/xyzcal.cpp @@ -426,8 +426,9 @@ void go_and_stop(uint8_t axis, int16_t dec, uint16_t &delay_us, uint16_t &steps) --steps; } -/// Count number of zeros on the 32 byte array +/// Count number of zeros in the 32 byte array /// If the number is less than 16, it moves @min_z up +/// Zeros make measuring faster but there cannot be too much bool more_zeros(uint8_t* pixels, int16_t &min_z){ uint8_t hist[256]; uint8_t i = 0;