Skip to content

Commit 15ccee4

Browse files
committed
fix
1 parent 6d608b6 commit 15ccee4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,10 @@ void loop() {
540540
set_brightness(constrain((val >> 4) + 1 + add_val, 1, 255));
541541
break;
542542
case 1: // автоматический с ограничителем
543-
set_brightness(constrain((( val * bright0 ) >> 12) + 1 + add_val, 1,255));
543+
set_brightness(constrain((( val * gs.bright0 ) >> 12) + 1 + add_val, 1,255));
544544
break;
545545
default: // ручной
546-
set_brightness(constrain((uint16_t)bright0 + (uint16_t)add_val, 1, 255));
546+
set_brightness(constrain((uint16_t)gs.bright0 + (uint16_t)add_val, 1, 255));
547547
#else
548548
case 0: // полный автомат от 1 до 255
549549
set_brightness(constrain((val >> 2) + 1 + add_val, 1, 255));

src/security.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ void inMsg(FB_msg& msg) {
221221
html.begin(client, url.c_str());
222222
int httpResponseCode = html.GET();
223223
if (httpResponseCode == 200) {
224-
tb.sendMessage(urlEncode(html.getString()), msg.chatID);
224+
// ответ от датчика запихивается сразу в telegram, обработку делает FastBot
225+
tb.sendMessage(html.getString(), msg.chatID);
225226
} else {
226227
tb.sendMessage("error: "+String(httpResponseCode), msg.chatID);
227228
}

0 commit comments

Comments
 (0)