mirror of
https://github.com/luc-github/ESP3DLib.git
synced 2026-03-19 06:16:56 +01:00
rearrange code
use generic ESP3D define instead of Marlin ones move configuration define in esp3dconfiglib move output to espcom remove ARDUINO_ARCH_ESP32 as not necessary make constistent initialization messages
This commit is contained in:
36
src/espcom.cpp
Normal file
36
src/espcom.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
espcom.cpp - esp3d communication serial/tcp/etc.. class
|
||||
|
||||
Copyright (c) 2014 Luc Lebosse. All rights reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "esp3dlibconfig.h"
|
||||
|
||||
#if defined(ESP3D_WIFISUPPORT)
|
||||
|
||||
#include MARLIN_PATH(HAL/HAL_ESP32/FlushableHardwareSerial.h)
|
||||
#include MARLIN_PATH(HAL/HAL_ESP32/HAL.h)
|
||||
#include "espcom.h"
|
||||
|
||||
void Esp3DCom::echo(const char * data)
|
||||
{
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOLNPAIR("", data);
|
||||
}
|
||||
|
||||
|
||||
#endif //ESP3D_WIFISUPPORT
|
||||
Reference in New Issue
Block a user