Skip to content

Commit

Permalink
fix(defect): 🩹 Class SerialTransmitter has a constructor that is no…
Browse files Browse the repository at this point in the history
…t explicit
  • Loading branch information
ZZ-Cat committed Apr 19, 2024
1 parent 580b543 commit 30b620e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SerialTransmitter/SerialTransmitter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

#pragma once

#ifndef ENV_DEFECT_DETECTOR
#include "../CFA_Config.hpp"
#endif
#include "Arduino.h"

namespace serialTransmitterLayer
Expand All @@ -35,7 +37,7 @@ namespace serialTransmitterLayer
{
public:
SerialTransmitter();
SerialTransmitter(HardwareSerial *hwUartPort);
explicit SerialTransmitter(HardwareSerial *hwUartPort);
SerialTransmitter(HardwareSerial *hwUartPort, int8_t rxPin, int8_t txPin);
virtual ~SerialTransmitter();

Expand Down

0 comments on commit 30b620e

Please sign in to comment.