Skip to content
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

Update architecture switch #28

Merged
merged 1 commit into from
May 22, 2015
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
8 changes: 4 additions & 4 deletions ModbusMaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Arduino library for communicating with Modbus slaves over RS232/485 (via RTU pro


/* _____GLOBAL VARIABLES_____________________________________________________ */
#ifdef __AVR__
#if defined(ARDUINO_ARCH_AVR)
HardwareSerial* MBSerial = &Serial; ///< Pointer to Serial class object
#endif

#ifdef __arm__
#elif defined(ARDUINO_ARCH_SAM)
UARTClass* MBSerial = &Serial; ///< Pointer to Serial class object
#else
#error "This library only supports boards with an AVR or SAM processor. Please open an issue at https:/4-20ma/ModbusMaster/issues and indicate which processor/platform you're using."
#endif


Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sentence=Enlighten your Arduino to be a Modbus master.
paragraph=Enables communication with Modbus slaves over RS232/485 (via RTU protocol). Requires a RS232/485 transceiver.
category=Communication
url=https:/4-20ma/ModbusMaster
architectures=*
architectures=avr,sam