Removed unnecessary const qualifiers in template

This commit is contained in:
BlackMark 2019-07-28 14:01:05 +02:00
parent 5cd2b963fa
commit d8aee7498d
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit d64793770cd82513bedcb839b7878c9102aba258 Subproject commit 387bc5f1107fb27684c0ed96f558a8c65c470cfe

View File

@ -17,7 +17,7 @@ enum class Parity { DISABLED = 0, ODD = 1, EVEN = 2 };
enum class StopBit { ONE = 1, TWO = 2 }; enum class StopBit { ONE = 1, TWO = 2 };
template <const uint32_t baudRate, const uint8_t dataBits, const Parity parity, const StopBit stopBit, const Mode mode> template <uint32_t baudRate, uint8_t dataBits, Parity parity, StopBit stopBit, Mode mode>
class hardware0 { class hardware0 {
static constexpr auto calcBaud() static constexpr auto calcBaud()
{ {
@ -246,7 +246,7 @@ enum class DataOrder {
LSB, LSB,
}; };
template <const Cpol cpol, const Cpha cpha, const DataOrder dataOrder> template <Cpol cpol, Cpha cpha, DataOrder dataOrder>
struct config { struct config {
static constexpr auto CPOL_MODE = cpol; static constexpr auto CPOL_MODE = cpol;
static constexpr auto CPHA_MODE = cpha; static constexpr auto CPHA_MODE = cpha;

@ -1 +1 @@
Subproject commit 29b4d85ce3e2a5467dc378f029b94fa35cb6c793 Subproject commit 2bbba0fcbd6879fa6ca941cfec19dd2dcc9afd9e