Skip to content

Commit eab0496

Browse files
committed
удален метод end()
1 parent fc50c74 commit eab0496

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/MT6701_I2C.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
** GitHub - https://github.com/S-LABc
1212
** Gmail - [email protected]
1313
*
14-
* Copyright (C) 2022. v1.1 / License MIT / Скляр Роман S-LAB
14+
* Copyright (C) 2022. v1.2 / License MIT / Скляр Роман S-LAB
1515
*/
1616

1717
#include "MT6701_I2C.h"
@@ -92,14 +92,6 @@ void MT6701I2C::begin(int8_t _sda_pin, int8_t _scl_pin) {
9292
void MT6701I2C::setClock(uint32_t _clock) {
9393
_wire_->setClock(_clock);
9494
}
95-
/*
96-
* @brief: отключение шины I2C
97-
*/
98-
#if !defined(ESP8266)
99-
void MT6701I2C::end(void) {
100-
_wire_->end();
101-
}
102-
#endif
10395
/*
10496
* @brief: сохраняет данные в EEPROM памяти датчика
10597
* @note: назначение каждой команды не описано в документации, порядок команд описан в 7.2 EEPROM Programming

src/MT6701_I2C.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
** GitHub - https://github.com/S-LABc
1212
** Gmail - [email protected]
1313
*
14-
* Copyright (C) 2022. v1.1 / License MIT / Скляр Роман S-LAB
14+
* Copyright (C) 2022. v1.2 / License MIT / Скляр Роман S-LAB
1515
*/
1616

1717
#pragma once
@@ -148,9 +148,6 @@ class MT6701I2C {
148148
void begin(int8_t _sda_pin, int8_t _scl_pin); // Вызов Wire.begin(SDA, SCL) с указанием выводов
149149
#endif
150150
void setClock(uint32_t _clock = MT6701_I2C_CLOCK_400KHZ); // Настройка частоты на 100кГц, 400кГц, 1МГц, или пользовательское значение (по умолчанию 400кГц)
151-
#if !defined(ESP8266)
152-
void end(void); // Вызов Wire.end()
153-
#endif
154151

155152
void saveNewValues(void); // Метод производителя для сохранения значений в памяти EEPROM. Рекомендуется выполнять при напряжение питания от 4.5В до 5.5В
156153

0 commit comments

Comments
 (0)