Simplify get-slave-i2c-errors.js by using padEnd()
This commit is contained in:
@@ -28,7 +28,7 @@ const slaveIdToName = [
|
|||||||
'kboot',
|
'kboot',
|
||||||
];
|
];
|
||||||
|
|
||||||
let str = `${slaveIdToName[slaveId]}: `;
|
let str = `${slaveIdToName[slaveId].padEnd(14)}: `;
|
||||||
|
|
||||||
const statusCodesToStrings = {
|
const statusCodesToStrings = {
|
||||||
0: 'nak',
|
0: 'nak',
|
||||||
|
|||||||
Reference in New Issue
Block a user