Browse Source

2 more missing flushes

Stasik0 10 years ago
parent
commit
5c840f5807
1 changed files with 2 additions and 0 deletions
  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)