Skip to content

Commit 4756b66

Browse files
Merge pull request #14 from NikolasK-source/main
v0.2.5
2 parents 43d1661 + 95df758 commit 4756b66

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13.4 FATAL_ERROR)
44
# ======================================================================================================================
55

66
# project
7-
project(Modbus_RTU_client_shm LANGUAGES CXX VERSION 0.2.3)
7+
project(Modbus_RTU_client_shm LANGUAGES CXX VERSION 0.2.5)
88

99
# settings
1010
set(Target "modbus-rtu-client-shm") # Executable name (without file extension!)

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The application is available as [modbus-rtu-client-shm](https://aur.archlinux.or
5757
See the [Arch Wiki](https://wiki.archlinux.org/title/Arch_User_Repository) for information about how to install AUR packages.
5858

5959

60-
### Using the Modbus Collection Flapak Package: Shared Memory Modbus (recommended)
60+
### Using the Modbus Collection Flatpak Package: Shared Memory Modbus (recommended)
6161
[SHM-Modbus](https://nikolask-source.github.io/SHM_Modbus/) is a collection of the shared memory modbus tools.
6262
It is available as flatpak and published on flathub as ```network.koesling.shm-modbs```.
6363

src/modbus_shm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Shm_Mapping::Shm_Mapping(std::size_t nb_bits,
3939
shm_data[DO] = std::make_unique<cxxshm::SharedMemory>(prefix + "DO", nb_bits, false, !force);
4040
shm_data[DI] = std::make_unique<cxxshm::SharedMemory>(prefix + "DI", nb_input_bits, false, !force);
4141
shm_data[AO] = std::make_unique<cxxshm::SharedMemory>(prefix + "AO", 2 * nb_registers, false, !force);
42-
shm_data[AI] = std::make_unique<cxxshm::SharedMemory>(prefix + "AI", nb_input_registers, false, !force);
42+
shm_data[AI] = std::make_unique<cxxshm::SharedMemory>(prefix + "AI", 2 * nb_input_registers, false, !force);
4343

4444
// set shm objects as modbus register storage
4545
mapping.tab_bits = static_cast<uint8_t *>(shm_data[DO]->get_addr());

0 commit comments

Comments
 (0)