after his return home, codrington spent some time in defending himself, and then in leisure abroad. he commanded a training squadron in the channel in 1831 and became a full admiral on 10 january 1837. he was elected member of parliament for devonport in 1832, and sat for that constituency until he accepted the chiltern hundreds in 1839. from november 1839 to december 1842 he was commander-in-chief, portsmouth.