freemyipod r229 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r228‎ | r229 | r230 >
Date:01:45, 26 October 2010
Author:theseven
Status:new
Tags:
Comment:
Fix a really silly bug from r227
Modified paths:
  • /embios/trunk/target/ipodnano2g/usbtarget.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano2g/usbtarget.c
@@ -71,8 +71,7 @@
7272 {
7373 int lpage = buffer[2] + i;
7474 int bank = lpage % banks;
75 - int page = (lpage / banks) % type->pagesperblock;
76 - int block = lpage / banks / type->pagesperblock;
 75+ int page = lpage / banks;
7776 int result;
7877 if (buffer[0] == 0xffff0002)
7978 result = nand_read_page(bank, page, (void*)(database + i * 2048),

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r227Add USB commands to access raw NAND on iPod Nano 2Gtheseven01:06, 26 October 2010