mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
add:增加homeassistant支持,取消支持domoticz
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user