remove phototransistor workarounds, new rev of Pro addresses them
This commit is contained in:
@@ -44,7 +44,8 @@ void light_sensor_face_setup(uint8_t watch_face_index, void ** context_ptr) {
|
||||
void light_sensor_face_activate(void *context) {
|
||||
light_sensor_state_t *state = (light_sensor_state_t *)context;
|
||||
(void) state;
|
||||
HAL_GPIO_IRSENSE_in();
|
||||
HAL_GPIO_IR_ENABLE_out();
|
||||
HAL_GPIO_IR_ENABLE_clr();
|
||||
HAL_GPIO_IRSENSE_pmuxen(HAL_GPIO_PMUX_ADC);
|
||||
adc_init();
|
||||
adc_enable();
|
||||
@@ -89,6 +90,7 @@ void light_sensor_face_resign(void *context) {
|
||||
adc_disable();
|
||||
HAL_GPIO_IRSENSE_pmuxdis();
|
||||
HAL_GPIO_IRSENSE_off();
|
||||
HAL_GPIO_IR_ENABLE_off();
|
||||
}
|
||||
|
||||
#endif // HAS_IR_SENSOR
|
||||
|
||||
Reference in New Issue
Block a user