equal
deleted
inserted
replaced
134 printf("CreateWaitableTimer failed (%d)\n", GetLastError()); |
134 printf("CreateWaitableTimer failed (%d)\n", GetLastError()); |
135 return 1; |
135 return 1; |
136 } |
136 } |
137 if( __init(argc,argv) == 0 ) |
137 if( __init(argc,argv) == 0 ) |
138 { |
138 { |
139 PLC_SetTimer(Ttick,Ttick); |
139 PLC_SetTimer(common_ticktime__,common_ticktime__); |
140 PLC_thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PlcLoop, NULL, 0, &thread_id); |
140 PLC_thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PlcLoop, NULL, 0, &thread_id); |
141 } |
141 } |
142 else{ |
142 else{ |
143 return 1; |
143 return 1; |
144 } |
144 } |