From f90f127d1d142aeb6c41cb36426be6274ff786a0 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 15 Mar 2025 17:43:00 +0000 Subject: [PATCH] Give a type to the MQTT QOS enumeration. --- MQTTConnection.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MQTTConnection.h b/MQTTConnection.h index ecd8143..9f718da 100644 --- a/MQTTConnection.h +++ b/MQTTConnection.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022,2023 by Jonathan Naylor G4KLX + * Copyright (C) 2022,2023,2025 by Jonathan Naylor G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,10 +24,10 @@ #include #include -enum class MQTT_QOS { - AT_MODE_ONCE = 0U, - AT_LEAST_ONCE = 1U, - EXACTLY_ONCE = 2U +enum class MQTT_QOS : int { + AT_MODE_ONCE = 0, + AT_LEAST_ONCE = 1, + EXACTLY_ONCE = 2 }; class CMQTTConnection {