getFirmware method
Get firmware based on firmwareType
Implementation
Future<List<Uint8List>> getFirmware(int firmwareType, int mtuSize,
{String? binFilePath}) {
if (firmwareType == 2) {
print("in package mtu size is $mtuSize");
return _getFirmwareFromPicker(mtuSize - 3);
} else if (firmwareType == 1 && binFilePath != null) {
return _readBinaryFile(binFilePath, mtuSize);
} else {
return Future.value([]); // Return empty list for other cases
}
}