From 7d7d997aff2009d9865b8240db1712733f4719b8 Mon Sep 17 00:00:00 2001 From: NightFish Date: Wed, 15 Sep 2021 21:53:05 +1200 Subject: [PATCH] Switch to unsigned integers --- PrometheusExporter.cpp | 2 +- PrometheusExporter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PrometheusExporter.cpp b/PrometheusExporter.cpp index 4014ad9..3ec99f4 100644 --- a/PrometheusExporter.cpp +++ b/PrometheusExporter.cpp @@ -8,7 +8,7 @@ void PrometheusExporter::init() { Serial.println("Exporter running."); } -void PrometheusExporter::setImpulses(int impulses) { +void PrometheusExporter::setImpulses(unsigned int impulses) { this->impulses = impulses; } diff --git a/PrometheusExporter.h b/PrometheusExporter.h index 999451f..d597ca8 100644 --- a/PrometheusExporter.h +++ b/PrometheusExporter.h @@ -10,7 +10,7 @@ class PrometheusExporter { public: void init(); void process(); - void setImpulses(int impulses); + void setImpulses(unsigned int impulses); private: String header; int impulses = 0;