Maximally differential graded ideals in positive characteristic