134
135
136
137
138
139
140
141
142
143
144
145
|
# File 'lib/class/PARALLEL/Parallel_export.rb', line 134
def check_SendAndReceivedData(value)
case value
when HardsploitAPI::USB_STATE::PACKET_IS_TOO_LARGE
Qt::MessageBox.new(Qt::MessageBox::Critical, "Critical error", "PACKET_IS_TOO_LARGE max: #{HardsploitAPI::USB::USB_TRAME_SIZE}").exec
when HardsploitAPI::USB_STATE::ERROR_SEND
Qt::MessageBox.new(Qt::MessageBox::Critical, "Critical error", "ERROR_SEND").exec
when HardsploitAPI::USB_STATE::BUSY
Qt::MessageBox.new(Qt::MessageBox::Warning, "BUSY", "Device busy").exec
else
return value
end
end
|