change function call name

master
Eggert Jung 3 years ago
parent 6fbc0d4c08
commit daadb91055

@ -5,6 +5,7 @@
#include "kraftsensor.h" #include "kraftsensor.h"
#include "notaus.h" #include "notaus.h"
#include "pid_controller.h" #include "pid_controller.h"
#include "common.h"
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
@ -46,7 +47,7 @@ double pid(PID_vars *vars, double current_err) {
return output; return output;
} }
void send_info(void); extern void send_settings(void);
void do_taenzer(){ void do_taenzer(){
/* Homing */ /* Homing */
@ -65,13 +66,13 @@ void do_taenzer(){
if (read_Input(BTN_KRAFT_PLUS, RISING)) { if (read_Input(BTN_KRAFT_PLUS, RISING)) {
taenzer_state.force_setpoint += 1000; taenzer_state.force_setpoint += 1000;
#if PLC_MQTT_ENABLED #if PLC_MQTT_ENABLED
send_info(); send_settings();
#endif #endif
} }
if (read_Input(BTN_KRAFT_MINUS, RISING)) { if (read_Input(BTN_KRAFT_MINUS, RISING)) {
taenzer_state.force_setpoint -= 1000; taenzer_state.force_setpoint -= 1000;
#if PLC_MQTT_ENABLED #if PLC_MQTT_ENABLED
send_info(); send_settings();
#endif #endif
} }
if (read_Input(BTN_TAENZER_START, RISING)) { if (read_Input(BTN_TAENZER_START, RISING)) {