From c06cea2fe9c5d626a519183d5e213f98764872c8 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 25 Feb 2023 23:30:01 +0000 Subject: [PATCH] Fix units for ":power" operating points. --- eeschema/sch_symbol.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index a551b5a975..7da9ac1e9c 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -1159,7 +1159,12 @@ bool SCH_SYMBOL::ResolveTextVar( wxString* token, int aDepth ) const precision = precisionStr[0] - '0'; if( range.IsEmpty() ) - range = wxS( "~A" ); + { + if( port == wxS( ":power" ) ) + range = wxS( "~W" ); + else + range = wxS( "~A" ); + } *token = Schematic()->GetOperatingPoint( signal.Lower(), precision, range );