Compare commits
	
		
			2 Commits
		
	
	
		
			1ceffa56f8
			...
			test/ipc-d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a35cb111ee | |||
| 575cb73d95 | 
							
								
								
									
										30
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								src/main.cpp
									
									
									
									
									
								
							| @ -6,6 +6,7 @@ | |||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include "../include/reHDD.h" | #include "../include/reHDD.h" | ||||||
|  | #include "../include/printer.h" | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * \brief   app entry point |  * \brief   app entry point | ||||||
| @ -14,9 +15,32 @@ | |||||||
|  */ |  */ | ||||||
| int main(void) | int main(void) | ||||||
| { | { | ||||||
|     // cout << "refurbishingHddTool" << endl; |     cout << "refurbishingHddTool" << endl; | ||||||
|  |  | ||||||
|     reHDD *app = new reHDD(); |     Drive *tmpDrive = new Drive("/dev/"); | ||||||
|     app->app_logic(); |     tmpDrive->setActionStartTimestamp(); | ||||||
|  |     tmpDrive->bWasShredded = true; | ||||||
|  |     tmpDrive->setDriveSMARTData("modelFamily", | ||||||
|  |         "modelName", | ||||||
|  |         "serial", | ||||||
|  |          420000, | ||||||
|  |          43, | ||||||
|  |          44, | ||||||
|  |          45, | ||||||
|  |          46); | ||||||
|  |  | ||||||
|  |     while(true){ | ||||||
|  |         cout << "send" << endl; | ||||||
|  |         Printer::getPrinter()->print(tmpDrive); | ||||||
|  |         sleep(5); // sleep 5 sec | ||||||
|  |         break; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |      | ||||||
|  |  | ||||||
|  |     cout << "exit" << endl; | ||||||
|  |  | ||||||
|  |     // reHDD *app = new reHDD(); | ||||||
|  |     // app->app_logic(); | ||||||
|     return EXIT_SUCCESS; |     return EXIT_SUCCESS; | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user