add:增加homeassistant支持,取消支持domoticz

This commit is contained in:
Zip
2019-03-28 18:14:03 +08:00
parent b19c822ba4
commit 04a8cded7e
10 changed files with 87 additions and 178 deletions

View File

@@ -31,8 +31,9 @@ static void power_timer_handler( void* arg )
static void power_irq_handler( void* arg )
{
// timer_count_last=timer_count;
timer_count = UpTicks( );
timer_count = mico_nanosecond_clock_value();
timer=timer_count-timer_count_last;
if(timer_count<timer_count_last) timer+=0xffffffff;
}
void user_power_init( void )