1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #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);
- }
- signed BootDevice2_no_wait(struct plc* plc)
- {
- if (BootParameters2(plc))
- {
- return (-1);
- }
- if (BootFirmware2(plc))
- {
- return (-1);
- }
- return (0);
- }
- #endif
|