소스 검색

2 more missing flushes

Stasik0 10 년 전
부모
커밋
5c840f5807
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/server_rpi.c

+ 2 - 0
examples/server_rpi.c

@@ -147,9 +147,11 @@ int main(int argc, char** argv) {
 	} else {
 		//setting led mode to manual
 		fprintf(triggerFile, "%s", "none");
+		fflush(triggerFile);
 
 		//turning off led initially
 		fprintf(ledFile, "%s", "1");
+		fflush(ledFile);
 
 		// add node with the device status data source
 		UA_DataSource ledStatusDataSource = (UA_DataSource)