Tactility SDK and release build scripting (#122)
* Implement release scripting and SDK building process * Fix for CYD display colors * Various improvements and fixes * Made build scripts more modular
This commit is contained in:
committed by
GitHub
parent
43714b2355
commit
a18221db08
@@ -118,11 +118,13 @@ static void update_sdcard_icon(std::shared_ptr<ServiceData> data) {
|
||||
// region power
|
||||
|
||||
static _Nullable const char* power_get_status_icon() {
|
||||
const std::shared_ptr<hal::Power> power = getConfiguration()->hardware->power();
|
||||
if (power == nullptr) {
|
||||
auto get_power = getConfiguration()->hardware->power;
|
||||
if (get_power == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto power = get_power();
|
||||
|
||||
hal::Power::MetricData charge_level;
|
||||
if (!power->getMetric(hal::Power::MetricType::CHARGE_LEVEL, charge_level)) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user