123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef BOOTDEVICE2_SOURCE
- #define BOOTDEVICE2_SOURCE
- #include <memory.h>
- #include "../plc/plc.h"
- signed BootDevice2 (struct plc * plc)
- {
- char string [PLC_VERSION_STRING];
- if (BootParameters2 (plc))
- {
- return (-1);
- }
- if (BootFirmware2 (plc))
- {
- return (-1);
- }
- if (WaitForStart (plc, string, sizeof (string)))
- {
- return (-1);
- }
- Confirm (plc, "%s is running", string);
- return (0);
- }
- #endif
|