Browse Source

ci: fix codacy style complaints

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
baa3426f19
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      code/espurna/gpio.h
  2. +1
    -1
      code/espurna/libs/BasePin.h
  3. +1
    -1
      code/espurna/mcp23s08.h
  4. +1
    -1
      code/espurna/telnet.cpp

+ 1
- 1
code/espurna/gpio.h View File

@ -18,7 +18,7 @@ constexpr const size_t GpioPins = 17;
// real hardware pin // real hardware pin
class GpioPin final : virtual public BasePin { class GpioPin final : virtual public BasePin {
public: public:
GpioPin(unsigned char pin);
explicit GpioPin(unsigned char pin);
void pinMode(int8_t mode); void pinMode(int8_t mode);
void digitalWrite(int8_t val); void digitalWrite(int8_t val);


+ 1
- 1
code/espurna/libs/BasePin.h View File

@ -13,7 +13,7 @@ Copyright (C) 2020 by Maxim Prokhorov <prokhorov dot max at outlook dot com>
// base interface for generic pin handler. // base interface for generic pin handler.
struct BasePin { struct BasePin {
BasePin(unsigned char pin) :
explicit BasePin(unsigned char pin) :
pin(pin) pin(pin)
{} {}


+ 1
- 1
code/espurna/mcp23s08.h View File

@ -26,7 +26,7 @@ constexpr size_t McpGpioPins = 8;
// real hardware pin // real hardware pin
class McpGpioPin final : public BasePin { class McpGpioPin final : public BasePin {
public: public:
McpGpioPin(unsigned char pin);
explicit McpGpioPin(unsigned char pin);
void pinMode(int8_t mode); void pinMode(int8_t mode);
void digitalWrite(int8_t val); void digitalWrite(int8_t val);


+ 1
- 1
code/espurna/telnet.cpp View File

@ -34,7 +34,7 @@ struct AsyncBufferedClient {
constexpr static const size_t BUFFERS_MAX = 5; constexpr static const size_t BUFFERS_MAX = 5;
using buffer_t = std::vector<uint8_t>; using buffer_t = std::vector<uint8_t>;
AsyncBufferedClient(AsyncClient* client);
explicit AsyncBufferedClient(AsyncClient* client);
size_t write(char c); size_t write(char c);
size_t write(const char* data, size_t size=0); size_t write(const char* data, size_t size=0);


Loading…
Cancel
Save