Skip to content

Commit

Permalink
expect newer major versions to work as well (fixes #380)
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Apr 5, 2021
1 parent ae4488d commit db524b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ebusd/mqtthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ bool mqtthandler_register(UserInfo* userInfo, BusHandler* busHandler, MessageMap
int minor = -1;
int revision = -1;
mosquitto_lib_version(&major, &minor, &revision);
if (major != LIBMOSQUITTO_MAJOR) {
if (major < LIBMOSQUITTO_MAJOR) {
logOtherError("mqtt", "invalid mosquitto version %d instead of %d", major, LIBMOSQUITTO_MAJOR);
return false;
}
Expand Down

0 comments on commit db524b9

Please sign in to comment.