Skip to content

String manipulations giving grief. As usual. #1639

Closed
@jimmys01

Description

@jimmys01

Version/revision of the library used

Latest and greatest self compiled build

Describe the bug

The Compiler is nagging about
IRutils.cpp:98:50: error: conversion from 'const __FlashStringHelper* const' to 'const StringSumHelper' is ambiguous return kDashStr + uint64ToString(-input, base);
My fix ( I do not know if is the best solution)
return String(kDashStr) + uint64ToString(-input, base);

Also

ir_Coolix.cpp:614:57: error: operands to ?: have different types 'const __FlashStringHelper* const' and 'StringSumHelper'
           ? kOffStr : uint64ToString(getSensorTemp()) + 'C', kSensorTempStr);

My fix (also dont know if this is the best solution)
? kOffStr : String(uint64ToString(getSensorTemp()) + 'C'), kSensorTempStr);

Expected behaviour

To compile.

Keep up the excelent work
Mutsos Gracias

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions