mirror of https://github.com/arendst/Tasmota.git
Update xdrv_27_shutter.ino
This commit is contained in:
parent
8d90844297
commit
400fa10594
|
@ -240,14 +240,9 @@ void ShutterInit(void)
|
||||||
Shutter.motordelay[i] = Settings.shutter_motordelay[i];
|
Shutter.motordelay[i] = Settings.shutter_motordelay[i];
|
||||||
Shutter.lastdirection[i] = (50 < Settings.shutter_position[i]) ? 1 : -1;
|
Shutter.lastdirection[i] = (50 < Settings.shutter_position[i]) ? 1 : -1;
|
||||||
|
|
||||||
char shutter_open_chr[10];
|
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("SHT%d: Init. Pos: %d,inverted %d, locked %d, end stop time enabled %d, webButtons inverted %d, shuttermode %d"),
|
||||||
dtostrfd((float)Shutter.open_time[i] / 10 , 1, shutter_open_chr);
|
i+1, Shutter.real_position[i],
|
||||||
char shutter_close_chr[10];
|
(Settings.shutter_options[i]&1) ? 1 : 0, (Settings.shutter_options[i]&2) ? 1 : 0, (Settings.shutter_options[i]&4) ? 1 : 0, (Settings.shutter_options[i]&8) ? 1 : 0, Shutter.mode);
|
||||||
dtostrfd((float)Shutter.close_time[i] / 10, 1, shutter_close_chr);
|
|
||||||
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("SHT: Shutter %d (Relay:%d): Init. Pos: %d [%d %%], Open Vel.: 100, Close Vel.: %d , Max Way: %d, Opentime %s [s], Closetime %s [s], CoeffCalc: c0: %d, c1 %d, c2: %d, c3: %d, c4: %d, binmask %d, is inverted %d, is locked %d, end stop time enabled %d, webButtons inverted %d, shuttermode %d, motordelay %d"),
|
|
||||||
i+1, Settings.shutter_startrelay[i], Shutter.real_position[i], Settings.shutter_position[i], Shutter.close_velocity[i], Shutter.open_max[i], shutter_open_chr, shutter_close_chr,
|
|
||||||
Settings.shuttercoeff[0][i], Settings.shuttercoeff[1][i], Settings.shuttercoeff[2][i], Settings.shuttercoeff[3][i], Settings.shuttercoeff[4][i],
|
|
||||||
Shutter.mask, (Settings.shutter_options[i]&1) ? 1 : 0, (Settings.shutter_options[i]&2) ? 1 : 0, (Settings.shutter_options[i]&4) ? 1 : 0, (Settings.shutter_options[i]&8) ? 1 : 0, Shutter.mode, Shutter.motordelay[i]);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// terminate loop at first INVALID shutter.
|
// terminate loop at first INVALID shutter.
|
||||||
|
|
Loading…
Reference in New Issue