mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
optiboot ota fix & ac driver ram optimization
This commit is contained in:
@@ -216,7 +216,7 @@ inline unsigned char toHex( char ch ){
|
||||
int out_AC::Setup()
|
||||
{
|
||||
abstractOut::Setup();
|
||||
debugSerial.println("AC Init");
|
||||
debugSerial<<F("AC Init")<<endl;
|
||||
AC_Serial.begin(9600);
|
||||
driverStatus = CST_INITIALIZED;
|
||||
return 1;
|
||||
@@ -224,7 +224,7 @@ return 1;
|
||||
|
||||
int out_AC::Stop()
|
||||
{
|
||||
debugSerial.println("AC De-Init");
|
||||
debugSerial<<F("AC De-Init")<<endl;
|
||||
|
||||
driverStatus = CST_UNKNOWN;
|
||||
return 1;
|
||||
@@ -248,7 +248,7 @@ if (cause!=POLLING_SLOW) return 0;
|
||||
//if (now - prevPolling > INTERVAL_AC_POLLING) {
|
||||
if (isTimeOver(prevPolling,millis(),INTERVAL_AC_POLLING)) {
|
||||
prevPolling = millisNZ();
|
||||
debugSerial.println ("Polling");
|
||||
debugSerial.println(F("Polling"));
|
||||
SendData(qstn, sizeof(qstn)/sizeof(byte)); //Опрос кондиционера
|
||||
}
|
||||
///delay(100);
|
||||
|
||||
@@ -395,8 +395,8 @@ monitor_speed = 115200
|
||||
platform = atmelavr
|
||||
;For OTA programming - generating bin image
|
||||
extra_scripts =
|
||||
pre:extra_script.py
|
||||
post:toBin.py
|
||||
extra_script.py
|
||||
|
||||
;OptiBoot setting
|
||||
board = ATmega2560
|
||||
|
||||
Reference in New Issue
Block a user