Skip to content

Commit

Permalink
Fix #27 Update architecture switch
Browse files Browse the repository at this point in the history
  • Loading branch information
4-20ma committed May 22, 2015
1 parent b95bf32 commit 6736392
Showing 1 changed file with 4 additions and 4 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:/4-20ma/ModbusMaster/issues and indicate which processor/platform you're using."
#endif


Expand Down

0 comments on commit 6736392

Please sign in to comment.