From: kyz Date: Tue, 29 Jul 2025 06:40:51 +0000 (+0800) Subject: 增加备电临时演示数据 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=08587ae2857d21f1bd4ccf49cf5b12bcf2e91bf8;p=yn%2Falarmmonitor.git 增加备电临时演示数据 --- diff --git a/app/src/ups.c b/app/src/ups.c index faf8143..2e6744d 100644 --- a/app/src/ups.c +++ b/app/src/ups.c @@ -201,6 +201,10 @@ void ups_timer_cb( uv_timer_t *handle ) p_ups->wait_resp = 1; p_ups->read_cmd = 2; uv_timer_start( &p_ups->timer, ups_timer_cb, 5*1000, 0 ); + + g_dev.ups.dl = 2.35f; + g_dev.ups.dy = 223.71f; + }else if( p_ups->read_cmd == 2 ){ //write WA\r ups_write( p_ups, "WA\r", 3 ); @@ -332,9 +336,9 @@ void ups_init( am_dev_t *dev ) int ret; dev->ups.cdzt = 0; - dev->ups.dl = 0; + dev->ups.dl = 2.35f; dev->ups.dlzt = 0; - dev->ups.dy = 0; + dev->ups.dy = 221.37f; dev->ups.gdzt = 0; dev->ups.gzzt = 0; dev->ups.kqzt = 0;