Skip to content

Commit

Permalink
Merge pull request #63 from SV-Zanshin/Development_v1.0.13
Browse files Browse the repository at this point in the history
Development v1.0.13
  • Loading branch information
Arnd authored Jul 12, 2020
2 parents 154d500 + f1eefd0 commit 7d37218
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _Please describe the tests that you ran to verify your changes. Provide instruct
* Arduino version:
* Arduino Hardware:
* SDK: (Arduino IDE, Atmel Studio, Visual Studio, Visual Micro, etc.)
* Development sytem: (Windows, Web, Linux, etc.)
* Development system: (Windows, Web, Linux, etc.)

# Checklist:

Expand Down
3 changes: 2 additions & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
## ##
## Date Developer Comments ##
## ========== ============== ====================================================================== ##
## 2020-07-12 SV-Zanshin Updated to version v1.0.13 ##
## 2020-06-30 SV-Zanshin Updated to version v1.0.12 ##
## 2020-06-06 SV-Zanshin Updated to version v1.0.11 ##
## 2020-05-10 SV-Zanshin Removed all comments in order to compact this file ##
## ##
######################################################################################################
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = INA2xx
PROJECT_NUMBER = "Version 1.0.12"
PROJECT_NUMBER = "Version 1.0.13"
PROJECT_BRIEF = "Arduino Library for INA2xx power measurement devices"
PROJECT_LOGO = images/horizontal_narrow_small.png
OUTPUT_DIRECTORY =
Expand Down
1 change: 1 addition & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ INA_MODE_TRIGGERED_BOTH LITERAL1
INA_MODE_POWER_DOWN LITERAL1
INA_MODE_CONTINUOUS_SHUNT LITERAL1
INA_MODE_CONTINUOUS_BOTH LITERAL1
_EEPROM_offset LITERAL1


2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=INA2xx
version=1.0.12
version=1.0.13
author=https://github.com/SV-Zanshin
maintainer=https://github.com/SV-Zanshin
sentence=Read current and voltage data from multiple INA2xx devices
Expand Down
14 changes: 7 additions & 7 deletions src/INA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,14 @@ 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); // If ESP32 then allocate 512 Bytes
maxDevices = (_EEPROM_offset + 512) / sizeof(inaEE); // and compute number of devices
#elif defined(__STM32F1__) // Emulated EEPROM for STM32F1
maxDevices = (_EEPROM_offset + EEPROM.maxcount()) / sizeof(inaEE); // Compute max possible
#elif defined(CORE_TEENSY) // TEENSY doesn't have EEPROM.length
maxDevices = (_EEPROM_offset + 2048) / sizeof(inaEE); // defined, so use 2Kb as value
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
maxDevices = (EEPROM.maxcount() - _EEPROM_offset) / sizeof(inaEE); // Compute max possible
#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_offset + EEPROM.length()) / sizeof(inaEE); // Compute max possible
maxDevices = (EEPROM.length() - _EEPROM_offset) / sizeof(inaEE); // Compute max possible
#else
maxDevices = 32;
#endif
Expand Down
3 changes: 2 additions & 1 deletion src/INA.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
*
* Version | Date | Developer | Comments
* ------- | ---------- | ----------- | --------
* 1.0.12 | 2020-07-03 | SV-Zanshin | Issue #41. Added "_EEPROM_offset" variable
* 1.0.12 | 2020-07-13 | fg89o | Issue #62. Incorrect "_EEPROM_offset" computation
* 1.0.12 | 2020-07-13 | SV-Zanshin | Issue #41. Added "_EEPROM_offset" variable
* 1.0.12 | 2020-07-03 | sages | Issue #60. Possible Overflow getBus(MicroAmps,MicroWatts)
* 1.0.11 | 2020-06-30 | SV-Zanshin | Issue #58, changed formatting to use clang-format
* 1.0.11 | 2020-06-29 | SV-Zanshin | Issue #57. "Alert..." functions should be "alert..."
Expand Down

0 comments on commit 7d37218

Please sign in to comment.