Revision 5b1b6715 devices/LightRing/main.cpp

View differences:

devices/LightRing/main.cpp
640 640
              break;
641 641
          }
642 642
        }
643
        // handle bootloader version 1.0.x
643
        // handle bootloader version 1.0.x and 1.1.x
644 644
        else if ((*((uint32_t*)(BL_CALLBACK_TABLE_ADDR)) == (('A'<<24) | ('-'<<16) | ('B'<<8) | ('L'<<0))) &&
645
                 ((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->major == 1 && ((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->minor == 0) {
645
                 ((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->major == 1 && (((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->minor == 0 || ((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->minor == 1)) {
646 646
          switch (shutdown_now) {
647 647
            case SHUTDOWN_TRANSPORTATION:
648 648
              blCallbackPtrAddr += 6 * 4;

Also available in: Unified diff