mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Merge pull request #27 from spueblas/opamp
Correct input pins of the opamp component by swapping them.
This commit is contained in:
commit
e418b157ee
@ -76,10 +76,10 @@ Element* OpAmp::info(QString& Name, char* &BitmapFile, bool getNewOne)
|
||||
|
||||
QString OpAmp::spice_netlist(bool isXyce)
|
||||
{
|
||||
QString in_p = Ports.at(0)->Connection->Name;
|
||||
if (in_p=="gnd") in_p="0";
|
||||
QString in_m = Ports.at(1)->Connection->Name;
|
||||
QString in_m = Ports.at(0)->Connection->Name;
|
||||
if (in_m=="gnd") in_m="0";
|
||||
QString in_p = Ports.at(1)->Connection->Name;
|
||||
if (in_p=="gnd") in_p="0";
|
||||
QString out = Ports.at(2)->Connection->Name;
|
||||
if (out=="gnd") out="0";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user