1065 Commits

Autor SHA1 Nachricht Datum
Filippo Gentile
fc8ce2a891 endianess: fix MinGW on Windows
MinGW has _byteswap_ushort and the other functions like MSVC but
needs additional <cstdlib> header.
2023-01-09 21:46:31 +01:00
Filippo Gentile
09b9ed3de6 SerialPortListImplWin32: fix includes with MinGW on Windows
MinGW needs additional <ntdef.h> header to define PHYSICAL_ADDRESS.
The type is then used inside <ntddser.h>
2023-01-09 21:45:02 +01:00
Filippo Gentile
811536370e CMake: fix linking with MinGW compiler
First commit of a series to fix issues when building with MinGW

Boost.Asio uses Windows Socket library version 2.
MinGW needs explicit linking to ws2_32.dll for socket functions.
Also mswsock.dll is needed for AcceptEx() function.

MinGW can link directly .dll files, without import libraries.
So keep the generation of import library only on MSVC builds.
The path to the library needs adjusmets as it is no longer generated
inside build directory.
2023-01-09 21:41:48 +01:00
Reinder Feenstra
f3e47be740 set MSVC warning level to 4 2023-01-09 17:09:28 +01:00
Reinder Feenstra
ff9b524593 fix: use localtime_s or localtime_r instead of localtime 2023-01-08 23:34:38 +01:00
Reinder Feenstra
59a7f22ab9 fix: assigning a new interface to an output failed 2023-01-06 01:04:29 +01:00
Reinder Feenstra
9425c30cfd fix: assert caused crash 2023-01-06 01:03:16 +01:00
Reinder Feenstra
d77ddfbafb fix: added missing destroying() in Lua::Script 2023-01-06 00:55:53 +01:00
Reinder Feenstra
d21816caca corrected include guard 2023-01-06 00:54:37 +01:00
Reinder Feenstra
15d30710bb world: destroy() objects on world delete
else object may keep eachother alive when haveing a shared_ptr to eachother
2023-01-06 00:54:10 +01:00
Reinder Feenstra
896bd2a13f bugfix: added keepalive, to make sure object isn't deleted during destroy() call 2023-01-06 00:50:56 +01:00
Reinder Feenstra
74ac77b1a1 test: added move object between interfaces tests 2023-01-06 00:25:47 +01:00
Reinder Feenstra
1ef5e847b5 bugfix: propertyChanged signals were not disconnected 2023-01-06 00:11:46 +01:00
Reinder Feenstra
39213771c2 fix: tile destroy was called multiple times 2022-12-30 21:42:18 +01:00
Reinder Feenstra
433ef6ad79 fix: timing issue (quick start/stop of messagepump failed)
occured when running the tests
2022-12-25 23:43:54 +01:00
Reinder Feenstra
8659fc1d52 bugfix: vector iterator was used while modifing the vector 2022-12-25 23:42:08 +01:00
Reinder Feenstra
fc3012f346 fix: constexpr -> inline 2022-12-24 21:59:04 +01:00
Reinder Feenstra
0d7ef4eb4a windows: added serial port discovery/hotplug detection 2022-12-24 20:26:43 +01:00
Reinder Feenstra
1715c1db03 added std::string overload of rtrim() 2022-12-24 11:58:44 +01:00
Reinder Feenstra
4730b7ebce removed sd_event* member, just get it from the event source 2022-12-21 00:13:16 +01:00
Reinder Feenstra
3b5fec37c8 fix: removed sd_device_unref(), seems not needed based on libsystemd source 2022-12-20 23:35:39 +01:00
Reinder Feenstra
28dcd86919 fix: added missing include 2022-12-20 23:12:06 +01:00
Reinder Feenstra
9d743cb377 linux: added serial port discovery/hotplug detection (using libsystemd) 2022-12-20 00:01:20 +01:00
Reinder Feenstra
34abfafd21 added special serial device property and serial port list 2022-12-19 23:55:24 +01:00
Reinder Feenstra
ba1a3c09ef withrottle: added sending server type and version 2022-12-07 00:00:46 +01:00
Reinder Feenstra
fc163efc6d fix: added missing include for macOS 2022-12-05 10:19:54 +01:00
Reinder Feenstra
42746972b6 fix: added missing include for macOS 2022-12-05 08:08:33 +01:00
Reinder Feenstra
50f14074a1 added basic WiThrottle support 2022-12-04 23:54:32 +01:00
Reinder Feenstra
8554a409dd world saver: don't save empty object
object that don't need to be saved return an empty JSON object on save
2022-12-04 23:17:21 +01:00
Reinder Feenstra
3e1121ee04 added throttle objects to aquire/release decoder control 2022-12-04 23:16:08 +01:00
Reinder Feenstra
ada10ae2cb loconet: added slot write ack in simulation 2022-11-27 23:50:44 +01:00
Reinder Feenstra
ef6f3473e9 renamed methods for consistency 2022-11-26 23:52:55 +01:00
Reinder Feenstra
3459da35da fix: loconet fastclock hour/minute calculation 2022-11-26 23:46:54 +01:00
Reinder Feenstra
21558b5bd7 missing in c1081cc0bfe029e768a5a32a2f610013f764f88a 2022-11-15 07:08:24 +01:00
Reinder Feenstra
c1081cc0bf loconet: added fast clock support 2022-11-14 22:20:00 +01:00
Reinder Feenstra
6c466a9f14 added fast clock support 2022-11-06 23:59:51 +01:00
Reinder Feenstra
a22c42dc71 eventloop now uses boost::asio::io_context
make it easier to use timers etc.
2022-11-06 23:53:32 +01:00
Reinder Feenstra
11244744c8 loconet: wip: split messages.hpp/cpp 2022-10-31 22:57:54 +01:00
Reinder Feenstra
b9c459ced0 fix: missing checksum init 2022-10-31 08:05:12 +01:00
Reinder Feenstra
8b47b105ca loconet: OPC_IMM_PACKET has a response 2022-10-30 23:15:51 +01:00
Reinder Feenstra
61cd1356e3 include guard fixes 2022-10-30 22:57:02 +01:00
Reinder Feenstra
e02c077b51 loconet: added support for OPC_IMM_PACKET function control 2022-10-30 22:55:09 +01:00
Reinder Feenstra
0df76693ce loconet: fixed threading issue 2022-10-30 09:22:50 +01:00
Reinder Feenstra
e45dac60a8 server: added --world, --simulate, --online, --power and --run command line options 2022-10-27 23:46:08 +02:00
Reinder Feenstra
8f584a4dbc loconet: report warning if slot isn't usable, stop sending fast clock sync if slot isn't usable 2022-10-20 23:02:28 +02:00
Reinder Feenstra
ff7995abff loconet: moved LISSY messages to seperate header
to reduce the size of messages.hpp
2022-10-19 23:28:08 +02:00
Reinder Feenstra
9803ef695f loconet: updated LocoF20F28 message, it also controls F12 2022-10-19 22:48:21 +02:00
Reinder Feenstra
f8763a1aad re-added default margin in load world dialog 2022-10-10 22:17:00 +02:00
Reinder Feenstra
6da9291914 identification: added single sensor LISSY support 2022-10-09 23:46:05 +02:00
Reinder Feenstra
150f08a1c4 fix: clang-tidy readability improvements 2022-10-09 21:37:14 +02:00