diff --git a/firmware/MPLAB.X/nbproject/Makefile-18F25K50.mk b/firmware/MPLAB.X/nbproject/Makefile-18F25K50.mk
index f26bbaa..a5ddbcf 100644
--- a/firmware/MPLAB.X/nbproject/Makefile-18F25K50.mk
+++ b/firmware/MPLAB.X/nbproject/Makefile-18F25K50.mk
@@ -73,7 +73,7 @@ FIXDEPS=fixDeps
# The following macros may be used in the pre and post step lines
Device=PIC18F25K50
-ProjectDir="I:\console\firmware\MPLAB.X"
+ProjectDir="I:\console\github\firmware\MPLAB.X"
ConfName=18F25K50
ImagePath="dist\18F25K50\${IMAGE_TYPE}\MPLAB.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}"
ImageDir="dist\18F25K50\${IMAGE_TYPE}"
diff --git a/firmware/MPLAB.X/nbproject/Makefile-genesis.properties b/firmware/MPLAB.X/nbproject/Makefile-genesis.properties
deleted file mode 100644
index 25682b9..0000000
--- a/firmware/MPLAB.X/nbproject/Makefile-genesis.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-#Sun May 15 14:53:41 CEST 2016
-18F25K50.com-microchip-mplab-nbide-toolchainXC8-XC8LanguageToolchain.md5=12edf07df11dc3b48011abb2bbd51a8e
-18F25K50.languagetoolchain.version=1.37
-18F25K50.languagetoolchain.dir=C\:\\Program Files (x86)\\Microchip\\xc8\\v1.37\\bin
-configurations-xml=7c429f4305753dc36d0eb27f460d3e66
-com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=4b47e815d50912689a67d0b162f47a58
-host.platform=windows
-conf.ids=18F25K50
diff --git a/firmware/MPLAB.X/nbproject/Makefile-variables.mk b/firmware/MPLAB.X/nbproject/Makefile-variables.mk
deleted file mode 100644
index 6249ede..0000000
--- a/firmware/MPLAB.X/nbproject/Makefile-variables.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# Generated - do not edit!
-#
-# NOCDDL
-#
-CND_BASEDIR=`pwd`
-# 18F25K50 configuration
-CND_ARTIFACT_DIR_18F25K50=dist/18F25K50/production
-CND_ARTIFACT_NAME_18F25K50=MPLAB.X.production.hex
-CND_ARTIFACT_PATH_18F25K50=dist/18F25K50/production/MPLAB.X.production.hex
-CND_PACKAGE_DIR_18F25K50=${CND_DISTDIR}/18F25K50/package
-CND_PACKAGE_NAME_18F25K50=mplab.x.tar
-CND_PACKAGE_PATH_18F25K50=${CND_DISTDIR}/18F25K50/package/mplab.x.tar
diff --git a/firmware/MPLAB.X/nbproject/configurations.xml b/firmware/MPLAB.X/nbproject/configurations.xml
index 9decaa4..0f6150d 100644
--- a/firmware/MPLAB.X/nbproject/configurations.xml
+++ b/firmware/MPLAB.X/nbproject/configurations.xml
@@ -165,7 +165,7 @@
PIC18F25K50
- PK3OBPlatformTool
+ PICkit3PlatformTool
XC8
1.37
3
@@ -603,6 +603,7 @@
+
diff --git a/firmware/MPLAB.X/nbproject/private/configurations.xml b/firmware/MPLAB.X/nbproject/private/configurations.xml
index 90c1f24..5d85afc 100644
--- a/firmware/MPLAB.X/nbproject/private/configurations.xml
+++ b/firmware/MPLAB.X/nbproject/private/configurations.xml
@@ -4,7 +4,7 @@
0
-
+ :=MPLABComm-USB-Microchip:=<vid>04D8:=<pid>900A:=<rev>0002:=<man>Microchip Technology Inc.:=<prod>PICkit 3:=<sn>DEFAULT_PK3 :=<drv>x:=<xpt>h:=end
C:\Program Files (x86)\Microchip\xc8\v1.37\bin
place holder 1
diff --git a/firmware/MPLAB.X/nbproject/private/private.xml b/firmware/MPLAB.X/nbproject/private/private.xml
index 2357f12..f410232 100644
--- a/firmware/MPLAB.X/nbproject/private/private.xml
+++ b/firmware/MPLAB.X/nbproject/private/private.xml
@@ -3,18 +3,10 @@
- file:/I:/console/firmware/src/vendor/usb_config.h
- file:/I:/console/firmware/src/vendor/usb_descriptors.c
- file:/I:/console/firmware/src/mcp23s17.h
- file:/C:/Program%20Files%20(x86)/Microchip/xc8/v1.37/include/pic18f25k50.h
- file:/I:/console/firmware/src/rom.h
- file:/I:/console/firmware/src/spi.c
- file:/I:/console/firmware/src/app_usb.h
- file:/I:/console/firmware/src/app_usb.c
- file:/I:/console/firmware/src/mcp23s17.c
- file:/I:/console/firmware/src/spi.h
- file:/I:/console/firmware/src/main.c
- file:/I:/console/firmware/src/rom.c
+ file:/I:/console/github/firmware/src/system_config.h
+ file:/I:/console/github/firmware/src/rom.c
+ file:/I:/console/github/firmware/src/app_usb.c
+ file:/I:/console/github/firmware/src/mcp23s17.c
diff --git a/firmware/src/app_usb.c b/firmware/src/app_usb.c
index 2a66ec3..97e2fdc 100644
--- a/firmware/src/app_usb.c
+++ b/firmware/src/app_usb.c
@@ -188,7 +188,7 @@ void ProcessIO(void) {
if (!USBHandleBusy(USBGenericInHandle)) {
uint8_t * in = (uint8_t*) & PacketToPC;
rom_identify(in);
- rom_identify(&in[0x10]);
+ // rom_identify(&in[0x10]);
USBGenericInHandle = USBGenWrite(USBGEN_EP_NUM, (uint8_t*) & PacketToPC, USBGEN_EP_SIZE);
rqCmd = 0;
diff --git a/firmware/src/mcp23s17.c b/firmware/src/mcp23s17.c
index db8ad6c..a057a2f 100644
--- a/firmware/src/mcp23s17.c
+++ b/firmware/src/mcp23s17.c
@@ -15,19 +15,8 @@
#define PROTO_FAIL
-#ifdef PROTO_FAIL
-#if 1
#define CSL {PORTCbits.RC6 = 0;}
#define CSH {PORTCbits.RC6 = 1;}
-#else
-#define CSL {LATB = LATB & 0xFB;}
-#define CSH {LATB = LATB | 0x3; }
-#endif
-#else
-#define CSL {PORTCbits.RC6 = 1;}
-#define CSH {PORTCbits.RC6 = 1;}
-#endif
-
// Violet/XX/bleu/gris/blanc
diff --git a/firmware/src/rom.c b/firmware/src/rom.c
index acd3527..52663a7 100644
--- a/firmware/src/rom.c
+++ b/firmware/src/rom.c
@@ -38,12 +38,12 @@
#define CE_L_OE_H {PORTC = (PORTC & 0xFC) | 0x2 ;}
#define CE_H_OE_H {PORTC = PORTC | 0x03;}
-#define CE_L {PORTCbits.RC0 = 0;}
-#define CE_H {PORTCbits.RC0 = 1;}
-#define OE_L {PORTCbits.RC1 = 0;}
-#define OE_H {PORTCbits.RC1 = 1;}
-#define WE_L {PORTCbits.RC2 = 0;}
-#define WE_H {PORTCbits.RC2 = 1;}
+#define CE_L {LATCbits.LC0 = 0;}
+#define CE_H {LATCbits.LC0 = 1;}
+#define OE_L {LATCbits.LC1 = 0;}
+#define OE_H {LATCbits.LC1 = 1;}
+#define WE_L {LATCbits.LC2 = 0;}
+#define WE_H {LATCbits.LC2 = 1;}
#define DELAY_P { __delay_us(1); }