Skip to content

Commit

Permalink
Fix compatibility with earlier gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltrails committed Apr 29, 2024
1 parent be6e1ac commit 35fe33f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The development IDE is **[JetBrains CLion-Nova/CLion](https://www.jetbrains.com/
granting the [Open Source development license]( https://jb.gg/OpenSourceSupport).

### Version History
- 1.0.5
- 1.0.6
- Add SetVcp/SetVcpWithContext NO_VERIFY (no retry) flag option.
- Match the behaviour of the ddcutil command, default to verify-and-retry for all set-vcp method calls.
- Default to verify-and-retry for all libddcutil versions.
Expand Down
5 changes: 3 additions & 2 deletions ddcutil-service.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include <ddcutil_status_codes.h>
#include <ddcutil_macros.h>

#define DDCUTIL_DBUS_INTERFACE_VERSION_STRING "1.0.5"
#define DDCUTIL_DBUS_INTERFACE_VERSION_STRING "1.0.6"
#define DDCUTIL_DBUS_DOMAIN "com.ddcutil.DdcutilService"

#if DDCUTIL_VMAJOR == 2 && DDCUTIL_VMINOR == 0 && DDCUTIL_VMICRO < 2
Expand Down Expand Up @@ -2696,13 +2696,14 @@ int main(int argc, char* argv[]) {

if (enable_connectivity_signals) {
switch (monitoring_preference) {
case MONITOR_BY_LIBDDCUTIL_EVENTS:
case MONITOR_BY_LIBDDCUTIL_EVENTS: {
const int status = enable_ddca_watch_displays();
if (status == DDCRC_OK) {
poll_interval_micros = 0;
break;
}
g_warning("Falling back to service internal polling for change detection");
}
case MONITOR_BY_INTERNAL_POLLING:
default:
g_message("ConnectedDisplaysChanged signal - using service internal polling for change detection");
Expand Down
2 changes: 1 addition & 1 deletion ddcutil-service.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


Name: ddcutil-service
Version: 1.0.5
Version: 1.0.6
Release: 0
Summary: D-Bus service for libddcutil VESA DDC Monitor Virtual Control Panel
License: GPL-2.0-or-later
Expand Down

0 comments on commit 35fe33f

Please sign in to comment.