Added test-mode. Added aux. function isSerialOpen().
This commit is contained in:
		
							
								
								
									
										3
									
								
								update.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								update.h
									
									
									
									
									
								
							@@ -31,6 +31,7 @@ class Update : public QObject {
 | 
				
			|||||||
    QFile m_update_ctrl_file_copy;
 | 
					    QFile m_update_ctrl_file_copy;
 | 
				
			||||||
    QString m_workingDir;
 | 
					    QString m_workingDir;
 | 
				
			||||||
    bool m_maintenanceMode;
 | 
					    bool m_maintenanceMode;
 | 
				
			||||||
 | 
					    bool m_testMode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool m_init;
 | 
					    bool m_init;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -51,6 +52,7 @@ public:
 | 
				
			|||||||
                    QString update_ctrl_file,
 | 
					                    QString update_ctrl_file,
 | 
				
			||||||
                    QString workingDir = ".",
 | 
					                    QString workingDir = ".",
 | 
				
			||||||
                    bool maintenanceMode = false,
 | 
					                    bool maintenanceMode = false,
 | 
				
			||||||
 | 
					                    bool testMode = false,
 | 
				
			||||||
                    QObject *parent = nullptr,
 | 
					                    QObject *parent = nullptr,
 | 
				
			||||||
                    char const *serialInterface = SERIAL_PORT,
 | 
					                    char const *serialInterface = SERIAL_PORT,
 | 
				
			||||||
                    char const *baudrate = "115200");
 | 
					                    char const *baudrate = "115200");
 | 
				
			||||||
@@ -69,6 +71,7 @@ private:
 | 
				
			|||||||
    bool stopBootloader() const;
 | 
					    bool stopBootloader() const;
 | 
				
			||||||
    bool openSerial(int br, QString baudrate, QString comPort) const;
 | 
					    bool openSerial(int br, QString baudrate, QString comPort) const;
 | 
				
			||||||
    void closeSerial() const;
 | 
					    void closeSerial() const;
 | 
				
			||||||
 | 
					    bool isSerialOpen() const;
 | 
				
			||||||
    bool resetDeviceController() const;
 | 
					    bool resetDeviceController() const;
 | 
				
			||||||
    QByteArray loadBinaryDCFile(QString filename) const;
 | 
					    QByteArray loadBinaryDCFile(QString filename) const;
 | 
				
			||||||
    bool downloadBinaryToDC(QString const &bFile) const;
 | 
					    bool downloadBinaryToDC(QString const &bFile) const;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user