diff --git a/src/driver-roccat.c b/src/driver-roccat.c index b9931c7c..b8f90ff8 100644 --- a/src/driver-roccat.c +++ b/src/driver-roccat.c @@ -814,11 +814,21 @@ roccat_write_button(struct ratbag_button *button, *data = rc; + rc = roccat_write_profile(button->profile); + if (rc) { + log_error(device->ratbag, + "unable to write the profile to the device: '%s' (%d)\n", + strerror(-rc), rc); + return rc; + } + rc = roccat_write_macro(button, action); - if (rc) + if (rc) { log_error(device->ratbag, "unable to write the macro to the device: '%s' (%d)\n", strerror(-rc), rc); + return rc; + } return rc; }