Skip to content

Commit f795edb

Browse files
committed
fix: serial debug fix for RP2040
1 parent fcaf559 commit f795edb

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

Diff for: examples/SerialDebug/SerialDebug.ino

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1+
/*
2+
This file is part of the Arduino_ScienceKitCarrier library.
3+
Copyright (c) 2023 Arduino SA. All rights reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
120
#include "Arduino_ScienceKitCarrier.h"
221

322
ScienceKitCarrier science_kit;
423

5-
TaskHandle_t update_task;
6-
724

825
void setup() {
926
Serial.begin(115200);

Diff for: src/Arduino_ScienceKitCarrier.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,11 @@ void ScienceKitCarrier::threadExternalTemperature(){
821821
}
822822
}
823823

824+
#ifdef ESP32
824825
void ScienceKitCarrier::freeRTOSExternalTemperature(void * pvParameters){
825826
((ScienceKitCarrier*) pvParameters)->threadExternalTemperature();
826827
}
828+
#endif
827829

828830

829831
/********************************************************************/

0 commit comments

Comments
 (0)