mirror of
https://github.com/eclipse/upm.git
synced 2025-07-27 06:01:16 +03:00
Removed commented code
Ran clang-format on modified files Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
664c6dd8c6
commit
57c0c8c235
@ -24,22 +24,20 @@
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#include "hcsr04.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
HCSR04::HCSR04 (int triggerPin, int echoPin) :
|
||||
m_hcsr04(hcsr04_init(triggerPin, echoPin))
|
||||
HCSR04::HCSR04(int triggerPin, int echoPin) : m_hcsr04(hcsr04_init(triggerPin, echoPin))
|
||||
{
|
||||
if(!m_hcsr04)
|
||||
throw std::runtime_error(std::string(__FUNCTION__) +
|
||||
": hcsr04_init failed");
|
||||
if (!m_hcsr04)
|
||||
throw std::runtime_error(std::string(__FUNCTION__) + ": hcsr04_init failed");
|
||||
}
|
||||
|
||||
HCSR04::~HCSR04 ()
|
||||
HCSR04::~HCSR04()
|
||||
{
|
||||
hcsr04_close(m_hcsr04);
|
||||
}
|
||||
|
Reference in New Issue
Block a user