From c62b865f039b36138a4c615f85e8189b462739fb Mon Sep 17 00:00:00 2001 From: Hakan Bastedt Date: Sat, 8 Feb 2025 21:50:03 +0100 Subject: [PATCH] Restored to cover also SM2/DC sync situation --- .../EaserCAT-7000-DIO+THCAD+I2C/Firmware/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src/main.cpp b/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src/main.cpp index df8caf3..5fe94a4 100755 --- a/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src/main.cpp +++ b/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src/main.cpp @@ -45,8 +45,8 @@ void cb_get_inputs(void) // Set Master inputs, slave outputs, last operation if (scale == 0.0) scale = 1.0; float ADCvoltage = ADS.toVoltage(ADS.getValue()); - Obj.ArcVoltage = scale*ADCvoltage; // * ADCvoltage; // Scaled voltage, to give Plasma arc voltage - Obj.Voltage = ADCvoltage; // Raw voltage, read by ADC + Obj.ArcVoltage = scale * ADCvoltage; // * ADCvoltage; // Scaled voltage, to give Plasma arc voltage + Obj.Voltage = ADCvoltage; // Raw voltage, read by ADC } void ESC_interrupt_enable(uint32_t mask); @@ -68,10 +68,10 @@ static esc_cfg_t config = .post_object_download_hook = NULL, .rxpdo_override = NULL, .txpdo_override = NULL, - .esc_hw_interrupt_enable = NULL, // ESC_interrupt_enable, - .esc_hw_interrupt_disable = NULL, // ESC_interrupt_disable, + .esc_hw_interrupt_enable = ESC_interrupt_enable, + .esc_hw_interrupt_disable = ESC_interrupt_disable, .esc_hw_eep_handler = NULL, - .esc_check_dc_handler = NULL, // dc_checker, + .esc_check_dc_handler = dc_checker, }; volatile byte serveIRQ = 0;