GetDisplayNormal broken?

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

GetDisplayNormal broken?

Post by mattallen37 »

I think GetDisplayNormal has been broken. It will only read up to 255 bytes, instead of all 800. If you tell it to read 256+ bytes, the NXT locks up. I'm 99% sure it worked properly in the past.

I'm using BCC Version 3.3.8.10, dated 08/10/12 00:10:08
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: GetDisplayNormal broken?

Post by afanofosc »

If this were broken it would almost certainly be something in the firmware that was changed. I vaguely recall, though, that my brother ran into trouble trying to read all 800 bytes from screen memory when he wrote the etch-a-sketch program that I included in NXT Power Programming. It has been so long since I fiddled around with that that I can't remember anymore for sure one way or another. But I am not so sure that it ever worked properly when you try to read all 800 bytes at once.

You could roll back to an older firmware version and/or compiler and see if you can get it to work. That would help me sort out when/where I may have broken something.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests