mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2026-08-20 23:09:47 +08:00
fix
This commit is contained in:
+1
-1
Submodule utils/ethercat_src updated: 71d757c1aa...9e7007f5f0
@@ -266,12 +266,12 @@ int main(int argc,char **argv)
|
||||
updateBuffersIn(); //read input image
|
||||
|
||||
pthread_mutex_lock(&bufferLock); //lock mutex
|
||||
if(ethercat_callcyclic(BUFFER_SIZE, (uint8_t**)bool_input, (uint8_t**)bool_output, (uint8_t*)byte_input, (uint8_t*)byte_output, (uint16_t*)int_input, (uint16_t*)int_output)){
|
||||
if(ethercat_callcyclic(BUFFER_SIZE, (uint8_t***)bool_input, (uint8_t***)bool_output, (uint8_t**)byte_input, (uint8_t**)byte_output, (uint16_t**)int_input, (uint16_t**)int_output)){
|
||||
printf("EtherCAT cyclic failed\n");
|
||||
break;
|
||||
}
|
||||
if(bool_output[0][0]){
|
||||
printf("%QX0.0 := TRUE %i\n", bool_output[0]);
|
||||
if(&bool_output[0][0]){
|
||||
printf("%QX0.0 := TRUE %i\n", &bool_output[0]);
|
||||
}
|
||||
else{
|
||||
printf("%QX0.0 := FALSE\n");
|
||||
|
||||
Reference in New Issue
Block a user