Unlikely a bad ECU. Since you (may) have had a bad MAF, you should clear the learned maps from the ECU. With a bad sensor the computer will try to compensate, and store this as the 'best case' running condition, and will continue to do so, even with a new sensor for some time. Disconnect your battery and let the car sit overnight at least.
Are you pulling the error codes yourself? If so it's very easy to clear them. Anytime after you switch to diagnostics mode I(to get codes), turn the knob on the ECM left, wait, turn right, and the light should stay on. Codes cleared. Check
http://www.240sx.org in the FAQ section if this doesn't make sense.