Sfoglia il codice sorgente

Bugfix betreffend Erkennung des Bootmediums.

Rind 2 mesi fa
parent
commit
a72642fc58
3 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 4 1
      README.md
  2. 1 1
      gfaipc.pro
  3. 2 2
      src/sysinfo.cpp

+ 4 - 1
README.md

@@ -62,4 +62,7 @@ gfa/shm.h, gfa/mutex.h, gfa/sema.h, gfa/procmem.h, gfa/thread.h
 	ADC-Info für Systeme ohne Tiva. Bugfixes.
 
 * **1.9.0**<br>
-	TryLock (Mutex) implementiert.
+	TryLock (Mutex) implementiert.
+
+* **1.10.0**<br>
+	Bugfix betreffend Erkennung des Bootmediums.

+ 1 - 1
gfaipc.pro

@@ -1,5 +1,5 @@
 TEMPLATE = lib
-VERSION = 1.9
+VERSION = 1.10
 CONFIG -= qt app_bundle
 CONFIG += c++11 shared thread
 

+ 2 - 2
src/sysinfo.cpp

@@ -138,12 +138,12 @@ bool CSysInfo::GetBootInfo(bool &bootFromEMMC)
 		{
 			std::string sPart = m[1];
 			
-			if(!sPart.compare(_INTERNAL_EMMC_PART12) || sPart.compare(_INTERNAL_EMMC_PART11))
+			if(!sPart.compare(_INTERNAL_EMMC_PART12) || !sPart.compare(_INTERNAL_EMMC_PART11))
 			{
 				bootFromEMMC = true;
 				return true;
 			}
-			else if(!sPart.compare(_INTERNAL_EMMC_PART02) || sPart.compare(_INTERNAL_EMMC_PART01))
+			else if(!sPart.compare(_INTERNAL_EMMC_PART02) || !sPart.compare(_INTERNAL_EMMC_PART01))
 			{
 				bootFromEMMC = false;
 				return true;