mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-23 05:24:46 +00:00
#654 Fix gpio initilization
This commit is contained in:
parent
85752b0fc7
commit
9e736ab0d7
@ -27,7 +27,7 @@ This plugin supports:
|
|||||||
|
|
||||||
#define EXT_NOTIFICATION_PLUGIN_ENABLED 0
|
#define EXT_NOTIFICATION_PLUGIN_ENABLED 0
|
||||||
#define EXT_NOTIFICATION_PLUGIN_ACTIVE 0
|
#define EXT_NOTIFICATION_PLUGIN_ACTIVE 0
|
||||||
#define EXT_NOTIFICATION_PLUGIN_ALERT_MESSAGE 1
|
#define EXT_NOTIFICATION_PLUGIN_ALERT_MESSAGE 0
|
||||||
#define EXT_NOTIFICATION_PLUGIN_ALERT_BELL 0
|
#define EXT_NOTIFICATION_PLUGIN_ALERT_BELL 0
|
||||||
#define EXT_NOTIFICATION_PLUGIN_OUTPUT 13
|
#define EXT_NOTIFICATION_PLUGIN_OUTPUT 13
|
||||||
#define EXT_NOTIFICATION_PLUGIN_OUTPUT_MS 1000
|
#define EXT_NOTIFICATION_PLUGIN_OUTPUT_MS 1000
|
||||||
@ -63,19 +63,14 @@ int32_t ExternalNotificationPlugin::runOnce()
|
|||||||
// Set the direction of a pin
|
// Set the direction of a pin
|
||||||
pinMode(EXT_NOTIFICATION_PLUGIN_OUTPUT, OUTPUT);
|
pinMode(EXT_NOTIFICATION_PLUGIN_OUTPUT, OUTPUT);
|
||||||
|
|
||||||
// if ext_notification_plugin_active
|
// Turn off the pin
|
||||||
if (EXT_NOTIFICATION_PLUGIN_ACTIVE) {
|
|
||||||
setExternalOff();
|
setExternalOff();
|
||||||
} else {
|
|
||||||
setExternalOn();
|
|
||||||
}
|
|
||||||
|
|
||||||
externalNotificationPluginRadio = new ExternalNotificationPluginRadio();
|
externalNotificationPluginRadio = new ExternalNotificationPluginRadio();
|
||||||
|
|
||||||
firstTime = 0;
|
firstTime = 0;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// DEBUG_MSG("EN Loop\n");
|
|
||||||
if (externalCurrentState) {
|
if (externalCurrentState) {
|
||||||
|
|
||||||
// TODO: Test this part. Don't know if this should be greater than or less than.
|
// TODO: Test this part. Don't know if this should be greater than or less than.
|
||||||
|
Loading…
Reference in New Issue
Block a user