kalymos / PsNee

PsNee, an open source stealth modchip for the Sony Playstation 1
456 stars 68 forks source link

"lid" variable #6

Closed lucoot closed 1 year ago

lucoot commented 7 years ago

Super cool. I might be wrong here, but in your while loop testing if the lid has been opened an closed, you wait for the value of "lid" to change. But "int lid" is just the pin number to read the lid state, not the lid state itself. Furthermore, there doesn't seem to be a reading of that pin at each iteration of the while loop for it to ever change. Am I missing something?

kalymos commented 6 years ago

Good question, it is true that by looking at the code like this, it seems strange. The trick is that for the moment I keep this code in master, it is that it functions corectly, and that it turns on the attiny.(well I have not yet succeeded on the attiny ;) And I expect that the version of psxdev support the attiny for the paser in master, and the code of both versions is not mergeable, (too much divergence). P.S. I just gathered the code I didn't really take part in development.