update2 pidcode changed setmode