Changeset 344


Ignore:
Timestamp:
May 8, 2018, 12:32:20 PM (4 years ago)
Author:
coas-nagasima
Message:

検知レベルとアナログ値の高低を反転

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/echonet_main.c

    r342 r344  
    493493                        }
    494494
    495                         ad_level = 8 - (((main_ad_avelage / main_ad_table_count) >> 9) & 0x7);
     495                        ad_level = (((main_ad_avelage / main_ad_table_count) >> 9) & 0x7) + 1;
    496496                        if(main_ad_level != ad_level){
    497497                                /* 1秒変化が続いたら */
Note: See TracChangeset for help on using the changeset viewer.