Skip to content

Commit

Permalink
clang-formatted document
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnd authored and Arnd committed Jul 12, 2020
1 parent 09bfe82 commit f1eefd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/INA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ uint8_t INA_Class::begin(const uint16_t maxBusAmps, const uint32_t microOhmR,
** RAM available at runtime to allocate sufficient space for 32 devices. **
**********************************************************************************************/
#if defined(ESP32) || defined(ESP8266)
EEPROM.begin(512 + _EEPROM_offset); // If ESP32 then allocate 512 Bytes
EEPROM.begin(512 + _EEPROM_offset); // If ESP32 then allocate 512 Bytes
maxDevices = (512) / sizeof(inaEE); // and compute number of devices
#elif defined(__STM32F1__) // Emulated EEPROM for STM32F1
#elif defined(__STM32F1__) // Emulated EEPROM for STM32F1
maxDevices = (EEPROM.maxcount() - _EEPROM_offset) / sizeof(inaEE); // Compute max possible
#elif defined(CORE_TEENSY) // TEENSY doesn't have EEPROM.length
#elif defined(CORE_TEENSY) // TEENSY doesn't have EEPROM.length
maxDevices = (2048 - _EEPROM_offset) / sizeof(inaEE); // defined, so use 2Kb as value
#elif defined(__AVR__)
maxDevices = (EEPROM.length() - _EEPROM_offset) / sizeof(inaEE); // Compute max possible
Expand Down

0 comments on commit f1eefd0

Please sign in to comment.