Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions js/protocols/usbasp.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ USBasp_protocol.prototype.verify_chip_signature = function(signature) {
self.maximum_transmission_size = 128;
available_flash_size = 32768;
break;
*/
case 0x1E950F: // testing only
console.log('Chip recognized as 328P');

self.fuse_count = 3;
self.maximum_transmission_size = 128;
available_flash_size = 32768;
break;
*/
case 0x1E9307:
console.log('Chip recognized as 8A');
GUI.log('Chip recognized as <strong>ATmega8 / ATmega8A</strong>');
Expand Down Expand Up @@ -438,7 +438,7 @@ USBasp_protocol.prototype.upload_procedure = function(step) {
var bytes_to_read = ((bytes_verified + self.maximum_transmission_size) <= self.hex.data[reading_block].bytes) ? self.maximum_transmission_size : (self.hex.data[reading_block].bytes - bytes_verified);

self.loadAddress(address, function() {
self.controlTransfer('in', self.func.READFLASH, 0, 0, bytes_to_read, 0, function(data) {
self.controlTransfer('in', self.func.READFLASH, address, 0, bytes_to_read, 0, function(data) {
console.log('USBASP - Reading from: ' + address + ', ' + bytes_to_read + ' bytes');

for (var i = 0; i < data.length; i++) {
Expand Down Expand Up @@ -506,4 +506,4 @@ USBasp_protocol.prototype.upload_procedure = function(step) {
};

// initialize object
var USBASP = new USBasp_protocol();
var USBASP = new USBasp_protocol();