mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
env var always defined
This commit is contained in:
parent
80ca56992c
commit
30ea6032c9
@ -26,11 +26,11 @@ export interface MatrixCell {
|
|||||||
// in the project-wide .env file. This is intentional. The optional-
|
// in the project-wide .env file. This is intentional. The optional-
|
||||||
// chaining operator will catch these errors.
|
// chaining operator will catch these errors.
|
||||||
export function initializeMatrix(): Matrix {
|
export function initializeMatrix(): Matrix {
|
||||||
const led_width = Number(env?.PUBLIC_LED_WIDTH ?? '64');
|
const led_width = Number(env.PUBLIC_LED_WIDTH ?? '64');
|
||||||
const led_height = Number(env?.PUBLIC_LED_HEIGHT ?? '64');
|
const led_height = Number(env.PUBLIC_LED_HEIGHT ?? '64');
|
||||||
|
|
||||||
const led_chain = Number(env?.PUBLIC_LED_CHAIN ?? '1');
|
const led_chain = Number(env.PUBLIC_LED_CHAIN ?? '1');
|
||||||
const led_parallel = Number(env?.PUBLIC_LED_PARALLEL ?? '1');
|
const led_parallel = Number(env.PUBLIC_LED_PARALLEL ?? '1');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
width: led_width * led_parallel,
|
width: led_width * led_parallel,
|
||||||
|
Loading…
Reference in New Issue
Block a user