Téma: sys[350] - hodnota po restartu
pokud odpojim jiz nactena teplotni čidla a restartuji SDS-mikro, tak v sys[350] je hodnota 8, ale podle wiki bych ocekaval spise 0, 16 nebo 32
verze : Toto je *BETA-VERSION* *RC4* verze hw SoC-ARM REV4 100Mbit DF7, ze dne 17.12.2012.
výpis
CONSOLE:
restart
Konec cteni T_voda "init" - errorcode :8, teplota :16777216
Konec cteni T_vzduch "init" - errorcode :8, teplota :16777216
program:
var t_vody;
var t_vzduch;
var ds_error;
init
{
echo('restart');
sys[64] = 10; //max 10s cekani
label cek1:
if (sys[350] == 2) goto ini2; // teplota vody prectena
if (sys[64] != 0) goto cek1;
ds_error = sys[350];
label ini2:
t_vody = sys[310];
echo('Konec cteni T_voda "init" - errorcode :',ds_error,', teplota :', t_vody );
sys[64] = 10; //max 10s cekani
label cek2:
if (sys[351] == 2) goto ini3; // teplota vzduchu prectena
if (sys[64] != 0) goto cek2;
ds_error = sys[351];
label ini3:
t_vzduch = sys[311];
echo('Konec cteni T_vzduch "init" - errorcode :',ds_error,', teplota :', t_vzduch);
}
main
{
}