Rolling GL v0.8 support.

Bug fix for 
This commit is contained in:
Dmitry Isaenko 2020-01-13 22:49:50 +03:00
parent ee478dfc9f
commit 5408d66a9e
7 changed files with 1274 additions and 139 deletions
src/main/java/nsusbloader/COM/USB

View file

@ -52,12 +52,20 @@ public class UsbCommunications extends Task<Void> {
TransferModule module;
if (protocol.equals("TinFoil"))
module = new TinFoil(handler, nspMap, this, logPrinter);
else if (protocol.equals("GoldLeaf"))
module = new GoldLeaf(handler, nspMap, this, logPrinter, nspFilterForGl);
else
module = new GoldLeaf_05(handler, nspMap, this, logPrinter);
switch (protocol) {
case "TinFoil":
module = new TinFoil(handler, nspMap, this, logPrinter);
break;
case "GoldLeaf":
module = new GoldLeaf(handler, nspMap, this, logPrinter, nspFilterForGl);
break;
case "GoldLeafv0.7.x":
module = new GoldLeaf_07(handler, nspMap, this, logPrinter, nspFilterForGl);
break;
default:
module = new GoldLeaf_05(handler, nspMap, this, logPrinter);
break;
}
usbConnect.close();