diff --git a/Core/Inc/yunhorn_sts_sensors.h b/Core/Inc/yunhorn_sts_sensors.h index 727e1b1..8ebbf36 100644 --- a/Core/Inc/yunhorn_sts_sensors.h +++ b/Core/Inc/yunhorn_sts_sensors.h @@ -684,8 +684,7 @@ void OnSensor3BStateChanged(void); void OnSensor3CStateChanged(void); void OnSensor4StateChanged(void); uint32_t STS_Get_Date_Time_Stamp(void);//uint32_t *time_stamp, uint8_t *datetimestamp); -void STS_SENSOR_Power_ON(uint8_t cnt); -void STS_SENSOR_Power_OFF(uint8_t cnt); + void STS_SENSOR_MEMS_Reset(uint8_t cnt); void STS_PRESENCE_SENSOR_NVM_CFG(void); diff --git a/Core/Src/yunhorn_sts_process.c b/Core/Src/yunhorn_sts_process.c index 134bb2a..d348138 100644 --- a/Core/Src/yunhorn_sts_process.c +++ b/Core/Src/yunhorn_sts_process.c @@ -963,32 +963,6 @@ uint8_t STS_SENSOR_MEMS_Get_ID(uint8_t *devID) } -void STS_SENSOR_Power_ON(uint8_t cnt) -{ - switch (cnt) { - case 0: - case 1: - case 2: - PME_ON; - break; - default: - break; - } - -} -void STS_SENSOR_Power_OFF(uint8_t cnt) -{ - switch (cnt) { - case 0: - case 1: - case 2: - PME_OFF; - break; - default: - break; - } -} - void STS_SENSOR_MEMS_Reset(uint8_t cnt) { switch (cnt) {