Add support for devices without load output

This commit is contained in:
Martin Jäger
2020-05-11 10:32:24 +02:00
parent d292ad425a
commit e1c7f97f63
7 changed files with 77 additions and 11 deletions
+4
View File
@@ -10,6 +10,8 @@
#include <zephyr.h>
#endif
#if DT_OUTPUTS_LOAD_PRESENT || UNIT_TEST
#include "board.h"
#include "leds.h"
#include "device_status.h"
@@ -158,3 +160,5 @@ void load_short_circuit_stop()
{
load.stop(ERR_LOAD_SHORT_CIRCUIT);
}
#endif /* DT_OUTPUTS_LOAD_PRESENT */