From 6f592dd0987cae4f7f826056e5ff358ad26d3127 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Mon, 6 Apr 2020 21:44:28 +0200 Subject: [PATCH] Fixed missing const qualifier --- uart.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uart.hpp b/uart.hpp index 4839296..16451b7 100644 --- a/uart.hpp +++ b/uart.hpp @@ -192,7 +192,7 @@ class Uart { return *this; } - Uart &operator<<(unsigned short &val) + Uart &operator<<(const unsigned short &val) { txNumber(val); return *this; @@ -216,19 +216,19 @@ class Uart { return *this; } - Uart &operator<<(unsigned long &val) + Uart &operator<<(const unsigned long &val) { txNumber(val); return *this; } - Uart &operator<<(long long &val) + Uart &operator<<(const long long &val) { txNumber(val); return *this; } - Uart &operator<<(unsigned long long &val) + Uart &operator<<(const unsigned long long &val) { txNumber(val); return *this;