# | Line 311 | Line 311 | template<typename T> int NPTf<T>::readyCheck() { | |
---|---|---|
311 | } | |
312 | ||
313 | template<typename T> int NPTf<T>::readyCheck() { | |
314 | + | |
315 | + | //check parent's readyCheck() first |
316 | + | if (T::readyCheck() == -1) |
317 | + | return -1; |
318 | ||
319 | // First check to see if we have a target temperature. | |
320 | // Not having one is fatal. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |