Skip to content

Commit

Permalink
fix headers
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Sep 28, 2024
1 parent c4e8719 commit 850c229
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/modbus_server.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

#include "simple_socket/modbus/ModbusServer.hpp"

#include <atomic>
#include <iostream>
#include <thread>

using namespace simple_socket;

Expand All @@ -19,8 +21,8 @@ int main() {
std::atomic_bool stop{false};
std::thread t([&] {
while (!stop) {
holding_register.setUint16(0, holding_register.getUint16(0)+1);
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
holding_register.setUint16(0, holding_register.getUint16(0) + 1);
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
});

Expand Down

0 comments on commit 850c229

Please sign in to comment.