File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 ));
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments