watchdog: fix astyle errors

pull/10857/head
Martin Kojtal 2019-06-27 22:06:24 +02:00 committed by Martin Kojtal
parent f98c2fdbba
commit b166acd1cb
2 changed files with 4 additions and 7 deletions

View File

@ -30,8 +30,8 @@ VirtualWatchdog::VirtualWatchdog(uint32_t timeout, const char *const str): _name
_next = NULL;
_max_timeout = timeout;
// start watchdog
Watchdog& watchdog = Watchdog::get_instance();
watchdog.start(&VirtualWatchdog::process, Watchdog::elapsed_ms);
Watchdog &watchdog = Watchdog::get_instance();
watchdog.start(&VirtualWatchdog::process, Watchdog::elapsed_ms);
}
VirtualWatchdog::~VirtualWatchdog()
@ -76,8 +76,7 @@ void VirtualWatchdog::add_to_list()
void VirtualWatchdog::remove_from_list()
{
VirtualWatchdog *cur_ptr = _first,
*prev_ptr = NULL;
VirtualWatchdog *cur_ptr = _first, *prev_ptr = NULL;
while (cur_ptr != NULL) {
if (cur_ptr == this) {
if (cur_ptr == _first) {

View File

@ -54,7 +54,7 @@ public:
/** As Watchdog might not stop ever, there is just one instance - we use single instance.
* This ensures we keep Watchdog alive. To operate watchdog, use start/stop methods.
*/
*/
static Watchdog &get_instance()
{
// Use this implementation of singleton (Meyer's) rather than the one that allocates
@ -108,7 +108,6 @@ public:
void kick();
private:
Watchdog();
~Watchdog();
@ -125,7 +124,6 @@ private:
*/
SingletonPtr<Ticker> _ticker;
#endif
};
} // namespace mbed