From 9624c90cfb46096ed07521cae40d5c85ac3f4ace Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 8 Aug 2019 07:25:27 -0500 Subject: [PATCH] Remove HAL.h dependency in SoftwareSerial.h --- Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp | 2 +- Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp b/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp index 5f95a1888377..309500d4817b 100644 --- a/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp +++ b/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp @@ -28,7 +28,7 @@ // Constructor -SoftwareSerial::SoftwareSerial(pin_t RX_pin, pin_t TX_pin) {} +SoftwareSerial::SoftwareSerial(int8_t RX_pin, int8_t TX_pin) {} // Public diff --git a/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h b/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h index 34bbb8548c71..0692b7e9f303 100644 --- a/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h +++ b/Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h @@ -18,13 +18,13 @@ */ #pragma once -#include "HAL.h" +#include #define SW_SERIAL_PLACEHOLDER 1 class SoftwareSerial { public: - SoftwareSerial(pin_t RX_pin, pin_t TX_pin); + SoftwareSerial(int8_t RX_pin, int8_t TX_pin); void begin(const uint32_t baudrate);