Automatic generation of markdown pages for supported devices

+ Added build-supported-devices.sh script
+ Added new target in CI/CD to build at compile time
This commit is contained in:
Chris
2022-05-25 17:58:59 +10:00
parent a7adfe251b
commit 524675108d
163 changed files with 699 additions and 265 deletions

View File

@@ -5,6 +5,7 @@
/**------------------------------------------------------------------*\
@name Debug
@category Unknown
@type I2C
@save :x:
@direct :x:
@@ -43,7 +44,7 @@ void RGBController_Debug::ResizeZone(int index, int new_size)
// Add the new ammount of LEDs to the old ammount
size_t new_leds_size = leds.size() - old_size + new_size;
leds.resize(std::max(old_leds_size, new_leds_size));
memmove(&leds[zones[index].start_idx] + old_leds_size, &leds[zones[index].start_idx] + new_leds_size, (old_leds_size - zones[index].start_idx - old_size) * sizeof(led));
@@ -54,6 +55,6 @@ void RGBController_Debug::ResizeZone(int index, int new_size)
{
leds[zones[index].start_idx + i].name = "Linear LED " + std::to_string(i);
}
SetupColors();
}