Device license changes (#596)

See https://github.com/TactilityProject/Tactility/pull/596 for author consent.
This commit is contained in:
Ken Van Hoeylandt
2026-07-30 17:19:11 +02:00
committed by GitHub
parent 1cb661469d
commit 606b918f9c
60 changed files with 9793 additions and 23 deletions
@@ -10,8 +10,6 @@
#include <tactility/log.h>
#include <Tactility/Thread.h>
#include <Tactility/app/App.h>
#include <Tactility/kernel/Kernel.h>
#include <freertos/FreeRTOS.h>
#include <freertos/queue.h>
@@ -72,7 +70,7 @@ static int32_t nav_buttons_thread_main(UnphoneNavButtonsInternal* internal) {
// The buttons might generate more than 1 click because of how they are built
LOG_I(TAG, "Pressed button %d", button_index);
if (button_index == BUTTON1_INDEX) {
tt::app::stop();
// TODO: Stop app implementation
}
// Debounce all events for a short period of time
@@ -3,8 +3,7 @@
#include <tactility/driver.h>
#include <tactility/drivers/gpio_controller.h>
#include <tactility/drivers/gpio_descriptor.h>
#include <tactility/error_esp32.h>
#include <tactility/error.h>
#include <tactility/log.h>
#include <driver/rtc_io.h>
@@ -67,7 +66,7 @@ error_t unphone_power_switch_is_on(Device* device, bool* on) {
error_t unphone_power_switch_enable_wake(Device* device) {
auto* internal = static_cast<UnphonePowerSwitchInternal*>(device_get_driver_data(device));
auto esp_error = esp_sleep_enable_ext0_wakeup(internal->native_pin, 1);
return esp_err_to_error(esp_error);
return esp_error == ESP_OK ? ERROR_NONE : ERROR_RESOURCE;
}
Driver unphone_power_switch_driver = {