aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/source/communication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/source/communication.cpp')
-rw-r--r--firmware/source/communication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/source/communication.cpp b/firmware/source/communication.cpp
index e85828b..8a9f86e 100644
--- a/firmware/source/communication.cpp
+++ b/firmware/source/communication.cpp
@@ -223,7 +223,7 @@ void sampleRate(unsigned char *cmd)
{
if (EM.assert(USBSerial::read(&cmd[1], 1) == 1, Error::BadParamSize)) {
if (cmd[1] == 0xFF) {
- unsigned char r = SClock::getRate();
+ auto r = static_cast<unsigned char>(SClock::getRate());
USBSerial::write(&r, 1);
} else {
auto r = static_cast<SClock::Rate>(cmd[1]);