Skip to content

Commit

Permalink
Merge pull request #1883 from BrewBlox/develop
Browse files Browse the repository at this point in the history
Edge release
  • Loading branch information
elcojacobs authored Oct 11, 2024
2 parents 1b677de + 1b544c1 commit f7ac106
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ const sysInfo = computed<SysInfoBlock | undefined>(() =>
);
const displayBrightness = computed<number>({
get: () => sysInfo.value?.data.displayBrightness ?? 255,
get: () => {
const brightness = sysInfo.value?.data.displayBrightness ?? 255;
if (brightness < 20) {
return 255; // values under 20 are not applied in firmware and will give max brightness
}
return brightness;
},
set: (displayBrightness) => {
sparkStore.patchBlock(sysInfo.value, { displayBrightness });
},
Expand Down

0 comments on commit f7ac106

Please sign in to comment.