12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef UPGRADEDEVICE1_SOURCE
- #define UPGRADEDEVICE1_SOURCE
- #include "../plc/plc.h"
- int UpgradeDevice1 (struct plc * plc)
- {
- if (WriteNVM (plc))
- {
- return (-1);
- }
- if (WritePIB (plc))
- {
- return (-1);
- }
- if (FlashDevice1 (plc))
- {
- return (-1);
- }
- return (0);
- }
- #endif
|