From a9c259c77a539c620ff5e92cd9f050bdfea0c33c Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Mon, 30 Sep 2019 02:47:19 -0500
Subject: [PATCH] Patch PrintrboardG2 build (on spec)

---
 Marlin/src/module/stepper.cpp                           | 4 ++--
 Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h               | 2 +-
 config/examples/Printrbot/PrintrboardG2/Configuration.h | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Marlin/src/module/stepper.cpp b/Marlin/src/module/stepper.cpp
index 6bee709b4e..12d5820d09 100644
--- a/Marlin/src/module/stepper.cpp
+++ b/Marlin/src/module/stepper.cpp
@@ -2580,9 +2580,9 @@ void Stepper::report_positions() {
 
   #endif
 
-#else
+#else // PRINTRBOARD_G2
 
-  #include "../HAL/HAL_DUE/G2_PWM.h"
+  #include HAL_PATH(../HAL, fastio/G2_PWM.h)
 
 #endif
 
diff --git a/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h b/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
index 4df3bc7f1a..d5cc3bed6a 100644
--- a/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
+++ b/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
@@ -126,7 +126,7 @@
 #define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19        MOTOR 3
 #define MOTOR_CURRENT_PWM_E_PIN 61 // PA2         MOTOR 4
 
-//#define DEFAULT_PWM_MOTOR_CURRENT { 300, 400, 1000}  // XY Z E0, 1000 = 1000mAh
+#define DEFAULT_PWM_MOTOR_CURRENT { 300, 400, 1000}  // XY Z E0, 1000 = 1000mAh
 
 //
 // Temperature Sensors
diff --git a/config/examples/Printrbot/PrintrboardG2/Configuration.h b/config/examples/Printrbot/PrintrboardG2/Configuration.h
index 4dfeefb576..5e8166724a 100644
--- a/config/examples/Printrbot/PrintrboardG2/Configuration.h
+++ b/config/examples/Printrbot/PrintrboardG2/Configuration.h
@@ -102,7 +102,7 @@
  *
  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
  */
-#define SERIAL_PORT 0
+#define SERIAL_PORT -1
 
 /**
  * Select a secondary serial port on the board to use for communication with the host.
-- 
GitLab