Skip to content

Commit 7d37218

Browse files
author
Arnd
authoredJul 12, 2020
Merge pull request #63 from SV-Zanshin/Development_v1.0.13
Development v1.0.13
2 parents 154d500 + f1eefd0 commit 7d37218

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed
 

‎.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _Please describe the tests that you ran to verify your changes. Provide instruct
2626
* Arduino version:
2727
* Arduino Hardware:
2828
* SDK: (Arduino IDE, Atmel Studio, Visual Studio, Visual Micro, etc.)
29-
* Development sytem: (Windows, Web, Linux, etc.)
29+
* Development system: (Windows, Web, Linux, etc.)
3030

3131
# Checklist:
3232

‎Doxyfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
## ##
44
## Date Developer Comments ##
55
## ========== ============== ====================================================================== ##
6+
## 2020-07-12 SV-Zanshin Updated to version v1.0.13 ##
67
## 2020-06-30 SV-Zanshin Updated to version v1.0.12 ##
78
## 2020-06-06 SV-Zanshin Updated to version v1.0.11 ##
89
## 2020-05-10 SV-Zanshin Removed all comments in order to compact this file ##
910
## ##
1011
######################################################################################################
1112
DOXYFILE_ENCODING = UTF-8
1213
PROJECT_NAME = INA2xx
13-
PROJECT_NUMBER = "Version 1.0.12"
14+
PROJECT_NUMBER = "Version 1.0.13"
1415
PROJECT_BRIEF = "Arduino Library for INA2xx power measurement devices"
1516
PROJECT_LOGO = images/horizontal_narrow_small.png
1617
OUTPUT_DIRECTORY =

‎keywords.txt

+1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ INA_MODE_TRIGGERED_BOTH LITERAL1
4040
INA_MODE_POWER_DOWN LITERAL1
4141
INA_MODE_CONTINUOUS_SHUNT LITERAL1
4242
INA_MODE_CONTINUOUS_BOTH LITERAL1
43+
_EEPROM_offset LITERAL1
4344

4445

‎library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=INA2xx
2-
version=1.0.12
2+
version=1.0.13
33
author=https://github.com/SV-Zanshin
44
maintainer=https://github.com/SV-Zanshin
55
sentence=Read current and voltage data from multiple INA2xx devices

‎src/INA.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ uint8_t INA_Class::begin(const uint16_t maxBusAmps, const uint32_t microOhmR,
189189
** RAM available at runtime to allocate sufficient space for 32 devices. **
190190
**********************************************************************************************/
191191
#if defined(ESP32) || defined(ESP8266)
192-
EEPROM.begin(512); // If ESP32 then allocate 512 Bytes
193-
maxDevices = (_EEPROM_offset + 512) / sizeof(inaEE); // and compute number of devices
194-
#elif defined(__STM32F1__) // Emulated EEPROM for STM32F1
195-
maxDevices = (_EEPROM_offset + EEPROM.maxcount()) / sizeof(inaEE); // Compute max possible
196-
#elif defined(CORE_TEENSY) // TEENSY doesn't have EEPROM.length
197-
maxDevices = (_EEPROM_offset + 2048) / sizeof(inaEE); // defined, so use 2Kb as value
192+
EEPROM.begin(512 + _EEPROM_offset); // If ESP32 then allocate 512 Bytes
193+
maxDevices = (512) / sizeof(inaEE); // and compute number of devices
194+
#elif defined(__STM32F1__) // Emulated EEPROM for STM32F1
195+
maxDevices = (EEPROM.maxcount() - _EEPROM_offset) / sizeof(inaEE); // Compute max possible
196+
#elif defined(CORE_TEENSY) // TEENSY doesn't have EEPROM.length
197+
maxDevices = (2048 - _EEPROM_offset) / sizeof(inaEE); // defined, so use 2Kb as value
198198
#elif defined(__AVR__)
199-
maxDevices = (_EEPROM_offset + EEPROM.length()) / sizeof(inaEE); // Compute max possible
199+
maxDevices = (EEPROM.length() - _EEPROM_offset) / sizeof(inaEE); // Compute max possible
200200
#else
201201
maxDevices = 32;
202202
#endif

‎src/INA.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
*
7878
* Version | Date | Developer | Comments
7979
* ------- | ---------- | ----------- | --------
80-
* 1.0.12 | 2020-07-03 | SV-Zanshin | Issue #41. Added "_EEPROM_offset" variable
80+
* 1.0.12 | 2020-07-13 | fg89o | Issue #62. Incorrect "_EEPROM_offset" computation
81+
* 1.0.12 | 2020-07-13 | SV-Zanshin | Issue #41. Added "_EEPROM_offset" variable
8182
* 1.0.12 | 2020-07-03 | sages | Issue #60. Possible Overflow getBus(MicroAmps,MicroWatts)
8283
* 1.0.11 | 2020-06-30 | SV-Zanshin | Issue #58, changed formatting to use clang-format
8384
* 1.0.11 | 2020-06-29 | SV-Zanshin | Issue #57. "Alert..." functions should be "alert..."

0 commit comments

Comments
 (0)
Please sign in to comment.