mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
bugfix: removed double env reading
This commit is contained in:
parent
e436850d7b
commit
c1ca265f5a
4
main.go
4
main.go
@ -94,8 +94,8 @@ func ConvertFallback(input string, fallback ...int) (int, error) {
|
||||
|
||||
func LoadMatrixData() (string, int, int) {
|
||||
// Remote server info
|
||||
API_SERVER_IP, _ := GetEnvFallback(os.Getenv("API_SERVER_IP"), "localhost")
|
||||
API_SERVER_PORT, _ := GetEnvFallback(os.Getenv("API_SERVER_PORT"), "8080")
|
||||
API_SERVER_IP, _ := GetEnvFallback("API_SERVER_IP", "localhost")
|
||||
API_SERVER_PORT, _ := GetEnvFallback("API_SERVER_PORT", "8080")
|
||||
|
||||
// LED panel info
|
||||
PUBLIC_LED_WIDTH, _ := ConvertFallback(os.Getenv("PUBLIC_LED_WIDTH"), 64)
|
||||
|
Loading…
Reference in New Issue
Block a user