TMZ has learned that "30 Rock" star Tracy Morgan has copped a plea that will keep him out of jail, but he'll have to wear a high-tech ankle bracelet to make sure he stays off the booze.
Friday afternoon, in a Los Angeles Superior County Court, a judge ordered Morgan, who was not present, to wear a SCRAM (Secure Continuous Remote Alcohol Monitoring) device -- an ankle bracelet worn to test for alcohol vapors that come out of the skin. The tests will go on every 30 minutes for 90 days. If Morgan tests positive for alcohol use he will have to start his 90 days over, and if he fails a second time he'll be forced to spend 30 days in a county jail.
Morgan will also have to complete five days of community service.
NYPD officers busted Morgan after he was spotted driving erratically in November. The bust violated the probation of a previous DUI conviction in Los Angeles.
Morgan is due back in court May 25, when he will be fitted for his new accessory.