mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Позволяем не подключать RTC модуль при добавленномой записи настройки для возможности получения доступа к системному времени
This commit is contained in:
@@ -28,6 +28,9 @@ class IarduinoRTC : public IoTItem {
|
||||
_defFormat = _defFormat + " "; // костыль против обрезки последнего символа в библиотеке
|
||||
|
||||
switch (_chipNum) {
|
||||
case 0:
|
||||
RTCDriver = new iarduino_RTC_NTP();
|
||||
break;
|
||||
case 1:
|
||||
RTCDriver = new iarduino_RTC_DS1302(_rst, _clk, _dat);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user