<commit_before>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the Licence is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the Licence for the
specific language governing permissions and limitations
under the Licence.

Author(s) / Copyright (s): <NAME> 2015-2016
                           <NAME> 2015
*/

#include "OTSIM900Link_OTSIM900Link.h"

namespace OTSIM900Link
{

/**
 * @brief    Constructor. Initializes softSerial and sets PWR_PIN
 * @param    pwrPin        SIM900 power on/off pin
 * @param    rxPin        Rx pin for software serial
 * @param    txPin        Tx pin for software serial
 *
 * Cannot do anything with side-effects,
 * as may be called before run-time fully initialised!
 */
OTSIM900Link::OTSIM900Link(uint8_t hardPwrPin, uint8_t pwrPin, uint8_t rxPin, uint8_t txPin)
  : HARD_PWR_PIN(hardPwrPin), PWR_PIN(pwrPin), softSerial(rxPin, txPin)
{
  bAvailable = false;
  bPowered = false;
  bPowerLock = false;
  powerTimer = 0;
  duration = 3; // seconds
  config = NULL;<commit_msg>fixed error in initing constant<commit_after>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the Licence is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the Licence for the
specific language governing permissions and limitations
under the Licence.

Author(s) / Copyright (s): <NAME> 2015-2016
                           <NAME> 2015
*/

#include "OTSIM900Link_OTSIM900Link.h"

namespace OTSIM900Link
{

/**
 * @brief    Constructor. Initializes softSerial and sets PWR_PIN
 * @param    pwrPin        SIM900 power on/off pin
 * @param    rxPin        Rx pin for software serial
 * @param    txPin        Tx pin for software serial
 *
 * Cannot do anything with side-effects,
 * as may be called before run-time fully initialised!
 */
OTSIM900Link::OTSIM900Link(uint8_t hardPwrPin, uint8_t pwrPin, uint8_t rxPin, uint8_t txPin)
  : HARD_PWR_PIN(hardPwrPin), PWR_PIN(pwrPin), softSerial(rxPin, txPin)
{
  bAvailable = false;
  bPowered = false;
  bPowerLock = false;
  powerTimer = 0;
  config = NULL;
{'fraction_non_alphanumeric': 0.0728744939271255, 'fraction_numerical': 0.029076186970923814, 'mean_word_length': 3.638225255972696, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5009113', 'n_tokens_mistral': 897, 'n_tokens_neox': 816, 'n_words': 326}