Remove const's for MBED.

This commit is contained in:
Jonathan Naylor 2016-03-03 19:02:19 +00:00
parent 6bf70a9595
commit 1e7b5a7951
2 changed files with 11 additions and 11 deletions

View File

@ -72,7 +72,7 @@ m_len(0U)
{ {
} }
void CSerialPort::sendACK() const void CSerialPort::sendACK()
{ {
uint8_t reply[4U]; uint8_t reply[4U];
@ -84,7 +84,7 @@ void CSerialPort::sendACK() const
write(reply, 4); write(reply, 4);
} }
void CSerialPort::sendNAK(uint8_t err) const void CSerialPort::sendNAK(uint8_t err)
{ {
uint8_t reply[5U]; uint8_t reply[5U];
@ -97,7 +97,7 @@ void CSerialPort::sendNAK(uint8_t err) const
write(reply, 5); write(reply, 5);
} }
void CSerialPort::getStatus() const void CSerialPort::getStatus()
{ {
io.resetWatchdog(); io.resetWatchdog();
@ -153,7 +153,7 @@ void CSerialPort::getStatus() const
write(reply, 10); write(reply, 10);
} }
void CSerialPort::getVersion() const void CSerialPort::getVersion()
{ {
uint8_t reply[100U]; uint8_t reply[100U];
@ -676,7 +676,7 @@ void CSerialPort::writeCalData(const uint8_t* data, uint8_t length)
write(reply, count); write(reply, count);
} }
void CSerialPort::write(const uint8_t* data, uint16_t length, bool flush) const void CSerialPort::write(const uint8_t* data, uint16_t length, bool flush)
{ {
#if defined(__MBED__) #if defined(__MBED__)
for (uint16_t i = 0U; i < length; i++) for (uint16_t i = 0U; i < length; i++)

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2015 by Jonathan Naylor G4KLX * Copyright (C) 2015,2016 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -63,13 +63,13 @@ private:
uint8_t m_ptr; uint8_t m_ptr;
uint8_t m_len; uint8_t m_len;
void sendACK() const; void sendACK();
void sendNAK(uint8_t err) const; void sendNAK(uint8_t err);
void getStatus() const; void getStatus();
void getVersion() const; void getVersion();
uint8_t setConfig(const uint8_t* data, uint8_t length); uint8_t setConfig(const uint8_t* data, uint8_t length);
uint8_t setMode(const uint8_t* data, uint8_t length); uint8_t setMode(const uint8_t* data, uint8_t length);
void write(const uint8_t* data, uint16_t length, bool flush = false) const; void write(const uint8_t* data, uint16_t length, bool flush = false);
void setMode(MMDVM_STATE modemState); void setMode(MMDVM_STATE modemState);
}; };