He did what the LORD approved, but not with wholehearted devotion. 