energia / msp430-lg-core

15 stars 12 forks source link

MSP430F5529 : String(uint16_t) fails #43

Open robertinant opened 7 years ago

robertinant commented 7 years ago

From @rei-vilo on August 28, 2016 17:13

Result for String() is

12345 @

instead of

12345 12345

  • Code
void setup() 
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  delay(600);
  Serial.println("***");

  uint16_t value = 12345;

  Serial.print(value, DEC);
  Serial.print("\t");
  Serial.println(String(value));
}

void loop() 
{

}

Copied from original issue: energia/msp430-ng-core#3

robertinant commented 7 years ago

From @rei-vilo on August 30, 2016 15:28

String(float, precision) and dtostrf() seem to be affected as well.

See String(float, precision) & dtostrf() bug at 43oh forum.