platformio_pre.py
This commit is contained in:
@@ -155,7 +155,7 @@ bool PIIODevice::setOption(PIIODevice::DeviceOption o, bool yes) {
|
||||
|
||||
|
||||
bool stopThread(PIThread * t, bool hard) {
|
||||
#ifdef FREERTOS
|
||||
#ifdef MICRO_PIP
|
||||
t->stop(true);
|
||||
#else
|
||||
if (hard) {
|
||||
@@ -222,7 +222,7 @@ void PIIODevice::_init() {
|
||||
setOptions(0);
|
||||
setReopenEnabled(true);
|
||||
setReopenTimeout(1000);
|
||||
#ifdef FREERTOS
|
||||
#ifdef MICRO_PIP
|
||||
threaded_read_buffer_size = 512;
|
||||
//setThreadedReadBufferSize(512);
|
||||
#else
|
||||
@@ -276,7 +276,7 @@ void PIIODevice::terminate() {
|
||||
thread_started_ = false;
|
||||
if (!init_) return;
|
||||
if (isRunning()) {
|
||||
#ifdef FREERTOS
|
||||
#ifdef MICRO_PIP
|
||||
stop(true);
|
||||
#else
|
||||
stop();
|
||||
|
||||
Reference in New Issue
Block a user