From 521303723740d8fff3906bf3cd3a4f080eb09d76 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 3 Sep 2020 11:56:55 -0700 Subject: [PATCH] fix expected (#1754) --- firmware/util/expected.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/util/expected.h b/firmware/util/expected.h index 12f6da49f3..b7ca0c940c 100644 --- a/firmware/util/expected.h +++ b/firmware/util/expected.h @@ -38,7 +38,7 @@ struct expected { } // Easy default value handling - constexpr float value_or(TValue valueIfInvalid) const { + constexpr TValue value_or(TValue valueIfInvalid) const { return Valid ? Value : valueIfInvalid; }