Reduce to 512 LEDS (out of mem) on some FW.
This commit is contained in:
parent
cafdbcc001
commit
9ec25ed0b4
@ -168,10 +168,9 @@ static void led_tester_setting_led_pin_change(VariableItem* item) {
|
|||||||
|
|
||||||
// Settings for configuring how many LEDs to enable.
|
// Settings for configuring how many LEDs to enable.
|
||||||
static const char* setting_led_count_config_label = "LED Count";
|
static const char* setting_led_count_config_label = "LED Count";
|
||||||
static uint16_t setting_led_count_values[] =
|
static uint16_t setting_led_count_values[] = {1, 2, 3, 4, 5, 6, 7, 8, 16, 32, 64, 128, 256, 512};
|
||||||
{1, 2, 3, 4, 5, 6, 7, 8, 16, 32, 64, 128, 256, 512, 1024};
|
|
||||||
static char* setting_led_count_names[] =
|
static char* setting_led_count_names[] =
|
||||||
{"1", "2", "3", "4", "5", "6", "7", "8", "16", "32", "64", "128", "256", "512", "1024"};
|
{"1", "2", "3", "4", "5", "6", "7", "8", "16", "32", "64", "128", "256", "512"};
|
||||||
static uint8_t setting_led_count_default_index = 3; // 4 LEDs
|
static uint8_t setting_led_count_default_index = 3; // 4 LEDs
|
||||||
static void led_tester_setting_led_count_change(VariableItem* item) {
|
static void led_tester_setting_led_count_change(VariableItem* item) {
|
||||||
LedTesterApp* app = variable_item_get_context(item);
|
LedTesterApp* app = variable_item_get_context(item);
|
||||||
@ -347,7 +346,7 @@ static bool led_tester_custom_event_callback(void* context, uint32_t event) {
|
|||||||
led_driver_set_led(app->led_driver, i, 0);
|
led_driver_set_led(app->led_driver, i, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_driver_transmit(app->led_driver, false);
|
led_driver_transmit(app->led_driver, true);
|
||||||
|
|
||||||
if(event == LedTesterEventDeinit) {
|
if(event == LedTesterEventDeinit) {
|
||||||
led_driver_free(app->led_driver);
|
led_driver_free(app->led_driver);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <furi.h>
|
#include <furi.h>
|
||||||
#include <furi_hal.h>
|
#include <furi_hal.h>
|
||||||
|
|
||||||
#define MAX_LED_COUNT 1024
|
#define MAX_LED_COUNT 512
|
||||||
|
|
||||||
typedef struct LedDriver LedDriver;
|
typedef struct LedDriver LedDriver;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user