Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions THIRD_PARTY.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Adafruit_BNO055:
- link: https://github.com/adafruit/Adafruit_BNO055
- license: MIT
arduino-hmc5883l:
- link: https://github.com/jarzebski/arduino-hmc5883l
- license: GPL-3.0
AS5600:
- link: https://github.com/RobTillaart/AS5600
- license: MIT
hx711:
- link: https://github.com/bogde/hx711
- license: MIT
INA226_WE:
- link: https://github.com/wollewald/INA226_WE
- license: MIT
lx16a-servo:
- link: https://github.com/madhephaestus/lx16a-servo
- license: MIT
mpu6050_i2c:
- link: https://github.com/raspberrypi/pico-examples/tree/master/i2c/mpu6050_i2c
- license: BSD-3-clause
MPU9250:
- link: https://github.com/hideakitai/MPU9250
- license: MIT
pico-ssd1306:
- link: https://github.com/Harbys/pico-ssd1306
- license: BSD-3-clause
rp2040-serial-bootloader:
- link: https://github.com/usedbytes/rp2040-serial-bootloader
- license: BSD-3-clause
TCA9548:
- link: https://github.com/RobTillaart/TCA9548
- license: MIT
vl53l0x-arduino:
- link: https://github.com/pololu/vl53l0x-arduino
- license: MIT AND BSD-3-clause
10 changes: 9 additions & 1 deletion src/Telemetrix4RpiPico.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,9 @@ void get_next_command() {
return;
}
packet_size = byte;
if (packet_size == 0) {
return;
}
gpio_put(LED_PIN,
!gpio_get(LED_PIN)); // toggle the led state for every packet

Expand All @@ -984,7 +987,12 @@ void get_next_command() {

curr_packet_index++; // next byte of the message for next loop
if (packet_size == curr_packet_index) {

if (curr_packet_index < 1) {
// if we have received a full packet, but the packet size is less than 1,
// then we have a problem with the data and should just return and wait
// for the next command
return;
}
command_descriptor command_entry;
command_entry = command_table[command_buffer[0]];
command_entry.command_func();
Expand Down