Skip to content

Commit

Permalink
Update example for stm32 and esp compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy4495 committed Sep 15, 2023
1 parent e0572e3 commit e7be147
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/arduino-compile-sketches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ jobs:
fqbn: 'energia:msp430:MSP-EXP430G2553LP'
platform-name: 'energia:msp430'
platform-sourceurl: 'https://raw.githubusercontent.com/Andy4495/TI_Platform_Cores_For_Arduino/main/json/package_energia_minimal_MSP_107_index.json'
- arch: stm32
fqbn: 'STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8'
platform-name: 'STMicroelectronics:stm32'
platform-sourceurl: 'https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json'
- arch: esp8266
fqbn: 'esp8266:esp8266:thing'
platform-name: 'esp8266:esp8266'
platform-sourceurl: 'http://arduino.esp8266.com/stable/package_esp8266com_index.json'
- arch: esp32
fqbn: 'esp32:esp32:esp32'
platform-name: 'esp32:esp32'
platform-sourceurl: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json'

name: call-compile-sketches-workflow
uses: Andy4495/.github/.github/workflows/arduino-compile-sketches.yml@main
Expand Down
6 changes: 3 additions & 3 deletions examples/boyd_print_test/boyd_print_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ unsigned long last_pf_time = 0;


// how much serial data we expect before a newline
const unsigned int MAX_INPUT = 50;
const unsigned int _MAX_INPUT_ = 50;

char input_line[MAX_INPUT];
char input_line[_MAX_INPUT_];

void setup() {
int ret;
Expand Down Expand Up @@ -101,7 +101,7 @@ void processIncomingByte (const byte inByte)

default:
// keep adding if not full ... allow for terminating null byte
if (input_pos < (MAX_INPUT - 1)) {
if (input_pos < (_MAX_INPUT_ - 1)) {
input_line [input_pos++] = inByte;
}
break;
Expand Down

0 comments on commit e7be147

Please sign in to comment.