Skip to content

Commit

Permalink
Merge pull request #28 from 4-20ma/issue_27_update_architecture_switch
Browse files Browse the repository at this point in the history
Fix #27 Update architecture switch
  • Loading branch information
4-20ma committed May 22, 2015
2 parents b95bf32 + 1dad174 commit b9e29a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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://github.com/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://github.com/4-20ma/ModbusMaster
architectures=*
architectures=avr,sam

0 comments on commit b9e29a3

Please sign in to comment.