Watchdog: fix const static

Fixing error "non-static data member initializers only available with -std=c++11 or -std=gnu++11"
pull/10857/head
Martin Kojtal 2019-06-28 09:04:45 +01:00
parent 455015daf5
commit 02936376ae
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@
#include "platform/NonCopyable.h"
#include "platform/SingletonPtr.h"
#include "drivers/LowPowerTicker.h"
#include "drivers/WatchdogManager.h"
#include <cstdio>
namespace mbed {
@ -50,7 +49,7 @@ namespace mbed {
*/
class Watchdog : private NonCopyable<Watchdog> {
public:
const uint32_t watchdog_timeout = MBED_CONF_TARGET_WATCHDOG_TIMEOUT / 2;
static const uint32_t watchdog_timeout = MBED_CONF_TARGET_WATCHDOG_TIMEOUT / 2;
/** 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.