fix small glitch in parser.c

This project was awarded to fifteenhex for $100 USD.

Get free quotes for a project like this
Project Budget
$100 USD
Total Bids
Project Description

Do a git pull on the "Instrument" repo.

This command sequence crashes parser.c:1278

diag:eprom:float 10070 6

diag:eprom:float? 10070

It should return "6.0e0" or something similar.

Something is wrong with the pointer trickery in this line:

return query_float(response, *(float *)(&globals.Flash.flash_start + eprom_loc));

It works fine if the address is on a 4-byte boundary, but 10070 isn't and it crashes as a result.

Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online