It's difficult to suggest a phrase when I have no idea what the current phrase is saying. But if two independent people says it's okay I guess it must be. Or are you sharing the same non-english native language? Maybe that's why it make sense to you? But in my view `when the unit the timer unit is activating was last activated` is completely rubbish and it not correct englsh.