Skip to content

Fix bug that breaks RS485 on the Opta #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2024
Merged
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
6 changes: 5 additions & 1 deletion src/Arduino_POSIXStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ enum BoardTypes detectBoardType()
{
#if defined(ARDUINO_PORTENTA_C33)
return BOARD_PORTENTA_C33;
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
#elif defined(ARDUINO_OPTA)
// This case must be handled separately, because PB14 that enables USB on the PMC is used for RS485 on the Opta,
// so performing automatic detection on the Opta breaks RS485
return BOARD_PORTENTA_H7;
#elif defined(ARDUINO_PORTENTA_H7_M7)
#if (defined(AUTOMATIC_OVERRIDE_PORTENTA_H7) && defined(AUTOMATIC_OVERRIDE_PORTENTA_MACHINE_CONTROL))
#error "You have defined AUTOMATIC_OVERRIDE_PORTENTA_H7 and AUTOMATIC_OVERRIDE_PORTENTA_MACHINE_CONTROL at the same time"
#endif
Expand Down