<table><tr><td style="">wreissenberger created this revision.<br />wreissenberger added reviewers: mutlaqja, TallFurryMan, lancaster.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />wreissenberger requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28788">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Due to concurrency in PHD2 it might happen, that a last guiding step is executed after a pause command has been successfully executed. This can create problems with the Guide module, since the Guide module assumes automatically being in state GUIDE_GUIDING if it sees a guiding step.<br />
To resolve this, the PHD2 module no longer guesses the state but it re-aquires it from PHD2.</p>

<p>This method could be used in future in other situations as well. Due to try to avoid any regressions, I only resolved this single code place. If it turns out to be stable, we could refactor other places as well.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>This specific situation is difficult to test. Since a central method handling a received state information has been refactored, please test all situations where PHD2 changes its state.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>BRANCH</strong><div><div>guide_paused_resume</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28788">https://phabricator.kde.org/D28788</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstars/ekos/guide/externalguide/phd2.cpp<br />
kstars/ekos/guide/externalguide/phd2.h<br />
kstars/ekos/guide/guide.cpp</div></div></div><br /><div><strong>To: </strong>wreissenberger, mutlaqja, TallFurryMan, lancaster<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>