mirror of
https://github.com/synthetos/g2.git
synced 2026-02-06 11:11:57 +08:00
slight change that allows for compiling on arm7 arch (raspi)
This commit is contained in:
@@ -100,7 +100,7 @@ static stat_t _set_homing_func(stat_t (*func)(int8_t axis)) {
|
||||
* Will be registered only during homing mode - see gpio.h for more info
|
||||
*/
|
||||
gpioDigitalInputHandler _homing_handler {
|
||||
[&](const bool state, const inputEdgeFlag edge, const uint8_t triggering_pin_number) {
|
||||
[](const bool state, const inputEdgeFlag edge, const uint8_t triggering_pin_number) {
|
||||
if (cm->cycle_type != CYCLE_HOMING) { return GPIO_NOT_HANDLED; }
|
||||
if (triggering_pin_number != hm.homing_input) { return GPIO_NOT_HANDLED; }
|
||||
if (edge != INPUT_EDGE_LEADING) { return GPIO_NOT_HANDLED; }
|
||||
|
||||
@@ -129,7 +129,7 @@ static void _motion_end_callback(float* vect, bool* flag)
|
||||
* Will be registered only during homing mode - see gpio.h for more info
|
||||
*/
|
||||
gpioDigitalInputHandler _probing_handler {
|
||||
[&](const bool state, const inputEdgeFlag edge, const uint8_t triggering_pin_number) {
|
||||
[](const bool state, const inputEdgeFlag edge, const uint8_t triggering_pin_number) {
|
||||
if (cm->cycle_type != CYCLE_PROBE) { return GPIO_NOT_HANDLED; }
|
||||
if (triggering_pin_number != pb.probe_input) { return GPIO_NOT_HANDLED; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user