Fix units for ":power" operating points.

This commit is contained in:
Jeff Young 2023-02-25 23:30:01 +00:00
parent 23c1a23faf
commit c06cea2fe9
1 changed files with 6 additions and 1 deletions

View File

@ -1159,7 +1159,12 @@ bool SCH_SYMBOL::ResolveTextVar( wxString* token, int aDepth ) const
precision = precisionStr[0] - '0'; precision = precisionStr[0] - '0';
if( range.IsEmpty() ) if( range.IsEmpty() )
range = wxS( "~A" ); {
if( port == wxS( ":power" ) )
range = wxS( "~W" );
else
range = wxS( "~A" );
}
*token = Schematic()->GetOperatingPoint( signal.Lower(), precision, range ); *token = Schematic()->GetOperatingPoint( signal.Lower(), precision, range );