using ttymxc2 instead of ttyUSB0 (bound to modem on PTU5)
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.cpp
									
									
									
									
									
								
							| @@ -16,7 +16,7 @@ static void updateDC(hwinf const *hw) { | ||||
|     qDebug() << "ENTER"; | ||||
|     //return; | ||||
|     for (int i=0; i< 1;++i) { | ||||
|         hw->dc_updateDC("dc2c4.bin", "115200", "ttyUSB0"); | ||||
|         hw->dc_updateDC("dc2c4.bin", "115200", "ttymxc2"); | ||||
|         std::this_thread::sleep_for(std::chrono::milliseconds(3000)); | ||||
|     } | ||||
|     qDebug() << "LEAVE"; | ||||
| @@ -37,6 +37,7 @@ int main(int argc, char *argv[]) | ||||
|     hwinf const* hw = plugin.loadPlugin(); | ||||
|     if (!hw) { | ||||
|         qCritical() << "Cannot load plugin"; | ||||
|         return -1; | ||||
|     } | ||||
|  | ||||
|     std::thread t(updateDC, hw); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user