Revision 5b1b6715 devices/DiWheelDrive/main.cpp

View differences:

devices/DiWheelDrive/main.cpp
949 949
              break;
950 950
          }
951 951
        }
952
        // handle bootloader version 1.0.x
952
        // handle bootloader version 1.0.x and 1.1.x
953 953
        else if ((*((uint32_t*)(BL_CALLBACK_TABLE_ADDR)) == (('A'<<24) | ('-'<<16) | ('B'<<8) | ('L'<<0))) &&
954
                 ((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->major == 1 && ((blVersion_t*)(BL_CALLBACK_TABLE_ADDR + (1*4)))->minor == 0) {
954
                 ((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)) {
955 955
          switch (shutdown_now) {
956 956
            case SHUTDOWN_TRANSPORTATION:
957 957
              blCallbackPtrAddr += 6 * 4;

Also available in: Unified diff