Skip to content

Eeprom fixes - #137

Open
trestoh wants to merge 9 commits into
masterfrom
eeprom-fixes
Open

Eeprom fixes#137
trestoh wants to merge 9 commits into
masterfrom
eeprom-fixes

Conversation

@trestoh

@trestoh trestoh commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@trestoh
trestoh requested a review from mzieg July 28, 2026 19:47

@mzieg mzieg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Trent, perhaps some of these EEPROM temperature fields should have been defined as uint8, but I think we need to consistently treat them as int8 (-128, +127).

Comment thread WasatchNET/EEPROM.cs Outdated

if (format >= 18)
{
maxLaserTempDegC = ParseData.toUInt8(pages[3], 11);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ENG-0034 has this defined as an int8, not uint8.

Comment thread WasatchNET/EEPROM.cs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ENG-0034 has this as an int8, not uint8.

Comment thread WasatchNET/EEPROM.cs Outdated
}
if (format >= 18)
{
if (!ParseData.writeByte(maxLaserTempDegC, pages[3], 11)) return false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may need a writeInt8?

Comment thread WasatchNET/EEPROM.cs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may need a writeInt8?

@trestoh

trestoh commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Hi Trent, perhaps some of these EEPROM temperature fields should have been defined as uint8, but I think we need to consistently treat them as int8 (-128, +127).

I will convert the fields mentioned into sbytes

… to differentiate returned failed read vs. unimplemented timeout
@trestoh

trestoh commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Hi Trent, perhaps some of these EEPROM temperature fields should have been defined as uint8, but I think we need to consistently treat them as int8 (-128, +127).

I will convert the fields mentioned into sbytes

this should now be good to go @mzieg ; made another small change that I rolled in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants