platformio_pre.py

This commit is contained in:
Andrey
2022-01-14 18:15:56 +03:00
parent 0504fa187e
commit a7df53fbfe
34 changed files with 200 additions and 117 deletions

View File

@@ -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();